Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This 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

Proto:void klp_reverse_transition(void)

Type:void

Parameter:Nothing

583  pr_debug("'%s': reversing transition from %s\n", Unique handle for this module , klp_target_state == KLP_PATCHED ? "patching to unpatching" : "unpatching to patching")
588  enabled = Not enabled
590  klp_target_state = Not klp_target_state
597  read_lock( & tasklist_lock)
598  Careful: this is a double loop, 'break' won't work as expected. (g, task)
599  clear_tsk_thread_flag(task, pending live patching update )
600  read_unlock( & tasklist_lock)
602  for_each_possible_cpu(cpu)
603  clear_tsk_thread_flag(dle_task - return the idle task for a given CPU.*@cpu: the processor in question.* Return: The idle task for the CPU @cpu., pending live patching update )
606  We allow to patch also functions where RCU is not watching,* e
608  Start the transition to the specified target patch state so tasks can begin* switching to it.
Caller
NameDescribe
enabled_store