函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get the ID of the specified process keyring.* The requested keyring must have search permission to be found.* If successful, the ID of the requested keyring will be returned.

函数原型:long keyctl_get_keyring_ID(key_serial_t id, int create)

返回类型:long

参数:

类型参数名称
key_serial_tid
intcreate
265  lflags等于如果createKEY_LOOKUP_CREATE否则0
266  key_ref等于Look up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip
267  如果是错误
268  ret等于错误
269  转到:error
272  ret等于 key serial number
273  key_ref_put(key_ref)
274  error :
275  返回:ret
调用者
名称描述
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs