Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Query information about an asymmetric key.

Proto:long keyctl_pkey_query(key_serial_t id, const char __user *_info, struct keyctl_pkey_query __user *_res)

Type:long

Parameter:

TypeParameterName
key_serial_tid
const char __user *_info
struct keyctl_pkey_query __user *_res
169  memset( & params, 0, size of params )
171  ret = Interpret parameters. Callers must always call the free function* on params, even if an error is returned.
172  If ret < 0 Then Go to error
175  ret = asym_query( & params, & res)
176  If ret < 0 Then Go to error
179  ret = -EFAULT
180  If copy_to_user(_res, & res, size of res ) == 0 && lear_user - Zero a block of memory in user space.*@to: Destination address, in user space.*@n: Number of bytes to zero.* Zero a block of memory in user space.* Return: number of bytes that could not be cleared.* On success, this will be zero. == 0 Then ret = 0
184  error :
185  keyctl_pkey_params_free( & params)
186  Return ret
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs