函数逻辑报告 |
Source Code:kernel\livepatch\transition.c |
Create Date:2022-07-27 11:31:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Try to safely switch a task to the target patch state. If it's currently* running, or it's sleeping on a to-be-patched or to-be-unpatched function, or* if the stack is unreliable, return false.
函数原型:static bool klp_try_switch_task(struct task_struct *task)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | task |
287 | bool success = false |
289 | err_buf[0]等于'\0' |
292 | 如果patch_state恒等于klp_target_state则返回:true |
299 | 如果非klp_have_reliable_stack()则返回:false |
309 | 如果task_running(rq, task)且task不等于当前进程则 |
313 | 转到:done |
316 | ret等于Determine whether it's safe to transition the task to the target patch state* by looking for any to-be-patched or to-be-unpatched functions on its stack. |
320 | success = true |
322 | 清除线程指定标志 |
325 | done : |
326 | task_rq_unlock(rq, task, & flags) |
336 | 返回:success |
名称 | 描述 |
---|---|
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 插件可实现:逻辑报告 代码生成和批量转换代码 |