Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:generic_key_instantiate - Simple instantiation of a key from preparsed data*@key: The key to be instantiated*@prep: The preparsed data to load.* Instantiate a key from preparsed data. We assume we can just copy the data

Proto:int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep)

Type:int

Parameter:

TypeParameterName
struct key *key
struct key_preparsed_payload *prep
1101  pr_devel("==>%s()\n", __func__)
1103  ret = key_payload_reserve - Adjust data quota reservation for the key's payload*@key: The key to make the reservation for
1104  If ret == 0 Then
1105  rcu_assign_keypointer(key, Raw data [0])
1106  data[1] = Raw data [1]
1107  data[2] = Raw data [2]
1108  data[3] = Raw data [3]
1109  Raw data [0] = NULL
1110  Raw data [1] = NULL
1111  Raw data [2] = NULL
1112  Raw data [3] = NULL
1114  pr_devel("<==%s() = %d\n", __func__, ret)
1115  Return ret