函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\syscall.c Create Date:2022-07-27 08:10:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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*

函数原型:int task_current_syscall(struct task_struct *target, struct syscall_info *info)

返回类型:int

参数:

类型参数名称
struct task_struct *target
struct syscall_info *info
67  如果target恒等于当前进程则返回:collect_syscall(target, info)
70  state等于任务状态
71  如果此条件成立可能性小(为编译器优化)(!state)则返回:负EAGAIN
74  ncsw等于wait_task_inactive(target, state)
75  如果此条件成立可能性小(为编译器优化)(!ncsw)或此条件成立可能性小(为编译器优化)(collect_syscall(target, info))或此条件成立可能性小(为编译器优化)(wait_task_inactive(target, state) != ncsw)则返回:负EAGAIN
80  返回:0