Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\key.c Create Date:2022-07-28 18:16:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:key_revoke - Revoke a key

Proto:void key_revoke(struct key *key)

Type:void

Parameter:

TypeParameterName
struct key *key
1042  key_check(key)
1049  down_write_nested( & change vs change sem , 1)
1050  If Not st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). && revoke Then revoke(key)
1055  time = ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.
1056  If time at which key was revoked == 0 || time at which key was revoked > time Then
1057  time at which key was revoked = time
1058  Schedule a garbage collection run.* - time precision isn't particularly important
1061  lease a write lock
Caller
NameDescribe
keyctl_revoke_keyRevoke a key.* The key must be grant the caller Write or Setattr permission for this to* work. The key type should give up its quota claim when revoked. The key* and any links to the key will be automatically garbage collected after a
complete_request_keymplete_request_key - Complete the construction of a key.*@authkey: The authorisation key.*@error: The success or failute of the construction.* Complete the attempt to construct a key. The key will be negated* if an error is indicated