Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Start the transition to the specified target patch state so tasks can begin* switching to it.

Proto:void klp_start_transition(void)

Type:void

Parameter:Nothing

468  WARN_ON_ONCE(klp_target_state == ask patch states )
470  pr_notice("'%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  If patch_state != klp_target_state Then Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
483  read_unlock( & tasklist_lock)
490  for_each_possible_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  If patch_state != klp_target_state Then Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
496  klp_signals_cnt = 0
Caller
NameDescribe
__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//*