Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\exit.c Create Date:2022-07-28 09:03:27
Last Modify:2020-03-17 11:17:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:task_stopped_code

Proto:static int *task_stopped_code(struct task_struct *p, bool ptrace)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
boolptrace
1105  If ptrace Then
1106  If task_is_traced(p) && Not (siglock protected & JOBCTL_LISTENING) Then Return exit code
1108  Else
1109  If Per task flags (PF_*), defined further below: & job control stop in effect Then Return group_exit_code
1112  Return NULL
Caller
NameDescribe
wait_task_stoppedwait_task_stopped - Wait for %TASK_STOPPED or %TASK_TRACED*@wo: wait options*@ptrace: is the wait for ptrace*@p: task to wait for* Handle sys_wait4() work for %p in state %TASK_STOPPED or %TASK_TRACED