函数逻辑报告 |
Source Code:lib\syscall.c |
Create Date:2022-07-27 08:10:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:collect_syscall
函数原型:static int collect_syscall(struct task_struct *target, struct syscall_info *info)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | target | |
struct syscall_info * | info |
12 | 如果非try_get_task_stack(target)则 |
19 | regs等于task_pt_regs(target) |
20 | 如果此条件成立可能性小(为编译器优化)(!regs)则 |
21 | put_task_stack(target) |
22 | 返回:负EAGAIN |
25 | sp等于user_stack_pointer(regs) |
28 | nr等于Only the low 32 bits of orig_ax are meaningful, so we return int.* This importantly ignores the high bits on 64-bit, so comparisons* sign-extend the low 32 bits. |
29 | 如果nr不等于负1L则syscall_get_arguments(target, regs, (unsignedlong * ) & args[0]) |
33 | put_task_stack(target) |
34 | 返回:0 |
名称 | 描述 |
---|---|
task_current_syscall | ask_current_syscall - Discover what a blocked task is doing.*@target: thread to examine*@info: structure with the following fields:* .sp - filled with user stack pointer* .data.nr - filled with system call number or -1* |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |