函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Drop 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

函数原型:void klp_force_transition(void)

返回类型:void

参数:

634  打印警告信息("forcing remaining tasks to the patched state\n")
636  read_lock( & tasklist_lock)
637  Careful: this is a double loop, 'break' won't work as expected. (g, task)
638  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.
639  read_unlock( & tasklist_lock)
641  遍历可用CPU(cpu)
642  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.
644  klp_for_each_patch(patch)
645  forced = true
调用者
名称描述
force_store