函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Switch the patched state of the task to the set of functions in the target* patch state.* NOTE: If task is not 'current', the caller must ensure the task is inactive.* Otherwise klp_ftrace_handler() might read the wrong 'patch_state' value.

函数原型:void klp_update_patch_state(struct task_struct *task)

返回类型:void

参数:

类型参数名称
struct task_struct *task
169  preempt_disable_notrace()
183  如果test_and_clear_tsk_thread_flag(task, pending live patching update )则patch_state等于READ_ONCE(klp_target_state)
186  preempt_enable_notrace()
调用者
名称描述
klp_force_transitionDrop TIF_PATCH_PENDING of all tasks on admin's request. This forces an* existing transition to finish.* NOTE: klp_update_patch_state(task) requires the task to be inactive or* 'current'. This is not the case here and the consistency model could be* broken
do_idleGeneric idle loop implementation* Called with polling cleared.