函数逻辑报告 |
Source Code:kernel\livepatch\transition.c |
Create Date:2022-07-27 11:31:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:The transition to the target patch state is complete. Clean up the data* structures.
函数原型:static void klp_complete_transition(void)
返回类型:void
参数:无
76 | pr_debug("'%s': completing %s transition\n", Unique handle for this module , klp_target_state == KLP_PATCHED ? "patching" : "unpatching") |
80 | 如果replace且klp_target_state恒等于KLP_PATCHED则 |
85 | 如果klp_target_state恒等于KLP_UNPATCHED则 |
102 | klp_for_each_func(obj, func) |
103 | transition = false |
109 | read_lock( & tasklist_lock) |
114 | read_unlock( & tasklist_lock) |
123 | 如果非klp_is_object_loaded(obj)则继续下一循环 |
131 | 打印注释信息("'%s': %s complete\n", Unique handle for this module , klp_target_state == KLP_PATCHED ? "patching" : "unpatching") |
135 | klp_transition_patch = NULL |
名称 | 描述 |
---|---|
klp_cancel_transition | This is called in the error path, to cancel a transition before it has* started, i.e. klp_init_transition() has been called but* klp_start_transition() hasn't. If the transition *has* been started,* klp_reverse_transition() should be used instead. |
klp_try_complete_transition | Try to switch all remaining tasks to the target patch state by walking the* stacks of sleeping tasks and looking for any to-be-patched or* to-be-unpatched functions. If such functions are found, the task can't be* switched yet. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |