Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_loglevel_state

Proto:static void free_loglevel_state(void)

Type:void

Parameter:Nothing

102  prev_loglevel_state = klp_get_prev_state(CONSOLE_LOGLEVEL_STATE)
103  If prev_loglevel_state Then
104  pr_info("%s: keeping space to store console_loglevel\n", __func__)
106  Return
109  loglevel_state = klp_get_state( & patch, CONSOLE_LOGLEVEL_STATE)
110  If Not loglevel_state Then Return
113  pr_info("%s: freeing space for the stored console_loglevel\n", __func__)
115  kfree(data)
Caller
NameDescribe
post_unpatch_callbackExecuted on object unpatching (ie, patch disablement)