Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\core.c Create Date:2022-07-28 10:30:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:klp_module_going

Proto:void klp_module_going(struct module *mod)

Type:void

Parameter:

TypeParameterName
struct module *mod
1211  If WARN_ON(state != MODULE_STATE_GOING && state != MODULE_STATE_COMING) Then Return
1215  mutex_lock( & klp_mutex is a coarse lock which serializes access to klp data)
1221  klp_alive = false
1223  Remove parts of patches that touch a given kernel module. The list of* patches processed might be limited. When limit is NULL, all patches* will be handled.
1225  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
do_init_moduleThis is where the real work happens.* Keep it uninlined to provide a reliable breakpoint target, e.g. for the gdb* helper command 'lx-symbols'.
load_moduleAllocate and load the module: note that size of section 0 is alwayszero, and we rely on this for optional sections.