函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:klp_module_going

函数原型:void klp_module_going(struct module *mod)

返回类型:void

参数:

类型参数名称
struct module *mod
1211  如果WARN_ON(state != MODULE_STATE_GOING && state != MODULE_STATE_COMING)则返回
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.
调用者
名称描述
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.