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:37
Last Modify:2020-03-18 08:02:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Preparse a user defined key payload

Proto:int user_preparse(struct key_preparsed_payload *prep)

Type:int

Parameter:

TypeParameterName
struct key_preparsed_payload *prep
62  datalen = Raw datalen
64  If datalen <= 0 || datalen > 32767 || Not Raw data Then Return -EINVAL
67  upayload = Allocation memory
68  If Not upayload Then Return -ENOMEM
72  Quota length for proposed payload = datalen
73  Raw data [0] = upayload
74  length of this data = datalen
75  memcpy(actual data , Raw data , datalen)
76  Return 0