函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:allocate_loglevel_state

函数原型:static int allocate_loglevel_state(void)

返回类型:int

参数:

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