函数逻辑报告 |
Source Code:kernel\livepatch\transition.c |
Create Date:2022-07-27 11:31:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static int klp_check_stack(struct task_struct *task, char *err_buf)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | task | |
char * | err_buf |
249 | ret等于stack_trace_save_tsk_reliable(task, entries, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(entries)) |
250 | 如果ret小于0则 |
254 | 返回:ret |
256 | nr_entries等于ret |
259 | 如果非patched则继续下一循环 |
261 | klp_for_each_func(obj, func) |
273 | 返回:0 |
名称 | 描述 |
---|---|
klp_try_switch_task | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |