函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_transition | 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 |
do_idle | Generic idle loop implementation* Called with polling cleared. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |