Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\livepatch\test_klp_state.c Create Date:2022-07-28 06:38:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:allocate_loglevel_state

Proto:static int allocate_loglevel_state(void)

Type:int

Parameter:Nothing

38  loglevel_state = klp_get_state( & patch, CONSOLE_LOGLEVEL_STATE)
39  If Not loglevel_state Then Return -EINVAL
42  data = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
43  If Not data Then Return -ENOMEM
46  pr_info("%s: allocating space to store console_loglevel\n", __func__)
48  Return 0
Caller
NameDescribe
pre_patch_callbackExecuted on object patching (ie, patch enablement)