函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\key.c Create Date:2022-07-27 19:51:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep)

返回类型:int

参数:

类型参数名称
struct key *key
struct key_preparsed_payload *prep
1101  打印调试信息("==>%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  如果ret恒等于0则
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  打印调试信息("<==%s() = %d\n", __func__, ret)
1115  返回:ret