函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\key.c Create Date:2022-07-27 19:51:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:key_revoke - Revoke a key

函数原型:void key_revoke(struct key *key)

返回类型:void

参数:

类型参数名称
struct key *key
1042  key_check(key)
1049  down_write_nested( & change vs change sem , 1)
1050  如果非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).revokerevoke(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  如果 time at which key was revoked 恒等于0或 time at which key was revoked 大于time
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
调用者
名称描述
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