Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Read the callout_info data (retrieves the callout information).* - the key's semaphore is read-locked

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

Type:long

Parameter:

TypeParameterName
const struct key *key
char __user *buffer
size_tbuflen
85  rka = dereference_key_locked(key)
89  If Not rka Then Return -EKEYREVOKED
92  datalen = callout_len
93  ret = datalen
96  If buffer && buflen > 0 Then
97  If buflen > datalen Then buflen = datalen
100  If copy_to_user(buffer, callout_info, buflen) != 0 Then ret = -EFAULT
104  Return ret