函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ad the key data* - the key's semaphore is read-locked

函数原型:long user_read(const struct key *key, char __user *buffer, size_t buflen)

返回类型:long

参数:

类型参数名称
const struct key *key
char __user *buffer
size_tbuflen
176  upayload等于user_key_payload_locked(key)
177  ret等于length of this data
180  如果bufferbuflen大于0则
181  如果buflen大于length of this data buflen等于length of this data
184  如果copy_to_user(buffer, actual data , buflen)不等于0则ret等于负EFAULT
188  返回:ret