函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:key_unlink - Unlink the first link to a key from a keyring

函数原型:int key_unlink(struct key *keyring, struct key *key)

返回类型:int

参数:

类型参数名称
struct key *keyring
struct key *key
1546  struct assoc_array_edit * edit = NULL
1549  key_check(keyring)
1550  key_check(key)
1552  ret等于Lock a keyring for unlink.
1553  如果ret小于0则返回:ret
1556  ret等于Begin the process of unlinking a key from a keyring.
1557  如果ret恒等于0则Apply an unlink change.
1559  Finish unlinking a key from to a keyring.
1560  返回:ret
调用者
名称描述
keyctl_keyring_unlinkUnlink a key from a keyring.* The keyring must grant the caller Write permission for this to work; the key* itself need not grant the caller anything. If the last link to a key is* removed then that key will be scheduled for destruction.