Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\user_defined.c Create Date:2022-07-28 18:24:45
Last Modify:2020-03-18 08:02:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ad the key data* - the key's semaphore is read-locked

Proto:long user_read(const struct key *key, char __user *buffer, size_t buflen)

Type:long

Parameter:

TypeParameterName
const struct key *key
char __user *buffer
size_tbuflen
176  upayload = user_key_payload_locked(key)
177  ret = length of this data
180  If buffer && buflen > 0 Then
181  If buflen > length of this data Then buflen = length of this data
184  If copy_to_user(buffer, actual data , buflen) != 0 Then ret = -EFAULT
188  Return ret