函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Start the transition to the specified target patch state so tasks can begin* switching to it.

函数原型:void klp_start_transition(void)

返回类型:void

参数:

468  WARN_ON_ONCE(klp_target_state == ask patch states )
470  打印注释信息("'%s': starting %s transition\n", Unique handle for this module , klp_target_state == KLP_PATCHED ? "patching" : "unpatching")
479  read_lock( & tasklist_lock)
480  Careful: this is a double loop, 'break' won't work as expected. (g, task)
481  如果patch_state不等于klp_target_stateSet thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
483  read_unlock( & tasklist_lock)
490  遍历可用CPU(cpu)
491  task等于dle_task - return the idle task for a given CPU.*@cpu: the processor in question.* Return: The idle task for the CPU @cpu.
492  如果patch_state不等于klp_target_stateSet thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
496  klp_signals_cnt等于0
调用者
名称描述
__klp_enable_patch
klp_reverse_transitionThis function can be called in the middle of an existing transition to* reverse the direction of the target patch state. This can be done to* effectively cancel an existing enable or disable operation if there are any
__klp_disable_patchSysfs Interface* /sys/kernel/livepatch* /sys/kernel/livepatch/* /sys/kernel/livepatch//enabled* /sys/kernel/livepatch//transition* /sys/kernel/livepatch//force* /sys/kernel/livepatch//*