Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\syscall.c Create Date:2022-07-28 07:12:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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*

Proto:int task_current_syscall(struct task_struct *target, struct syscall_info *info)

Type:int

Parameter:

TypeParameterName
struct task_struct *target
struct syscall_info *info
67  If target == current process Then Return collect_syscall(target, info)
70  state = run state
71  If Value for the false possibility is greater at compile time(!state) Then Return -EAGAIN
74  ncsw = wait_task_inactive(target, state)
75  If Value for the false possibility is greater at compile time(!ncsw) || Value for the false possibility is greater at compile time(collect_syscall(target, info)) || Value for the false possibility is greater at compile time(wait_task_inactive(target, state) != ncsw) Then Return -EAGAIN
80  Return 0