函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Query information about an asymmetric key.

函数原型:long keyctl_pkey_query(key_serial_t id, const char __user *_info, struct keyctl_pkey_query __user *_res)

返回类型:long

参数:

类型参数名称
key_serial_tid
const char __user *_info
struct keyctl_pkey_query __user *_res
169  memset( & params, 0, params的长度)
171  ret等于Interpret parameters. Callers must always call the free function* on params, even if an error is returned.
172  如果ret小于0则转到:error
175  ret等于asym_query( & params, & res)
176  如果ret小于0则转到:error
179  ret等于负EFAULT
180  如果copy_to_user(_res, & res, res的长度)恒等于0且用户内存块清零恒等于0则ret等于0
184  error :
185  keyctl_pkey_params_free( & params)
186  返回:ret
调用者
名称描述
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs