函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:allocate_loglevel_state

函数原型:static int allocate_loglevel_state(void)

返回类型:int

参数:

38  prev_loglevel_state等于klp_get_prev_state(CONSOLE_LOGLEVEL_STATE)
39  如果prev_loglevel_state
40  打印信息("%s: space to store console_loglevel already allocated\n", __func__)
42  返回:0
45  loglevel_state等于klp_get_state( & patch, CONSOLE_LOGLEVEL_STATE)
46  如果非loglevel_state则返回:负EINVAL
49  data等于分配内存并置零
50  如果非data则返回:负ENOMEM
53  打印信息("%s: allocating space to store console_loglevel\n", __func__)
55  返回:0
调用者
名称描述
pre_patch_callbackExecuted on object patching (ie, patch enablement)
pre_patch_callbackExecuted on object patching (ie, patch enablement)