1WAIT_TASK_STOPPED(9)             Driver Basics            WAIT_TASK_STOPPED(9)
2
3
4

NAME

6       wait_task_stopped - Wait for TASK_STOPPED or TASK_TRACED
7

SYNOPSIS

9       int wait_task_stopped(struct wait_opts * wo, int ptrace,
10                             struct task_struct * p);
11

ARGUMENTS

13       wo
14           wait options
15
16       ptrace
17           is the wait for ptrace
18
19       p
20           task to wait for
21

DESCRIPTION

23       Handle sys_wait4 work for p in state TASK_STOPPED or TASK_TRACED.
24

CONTEXT

26       qread_lock(tasklist_lock), which is released if return value is
27       non-zero. Also, grabs and releases p->sighand->siglock.
28

RETURNS

30       0 if wait condition didn't exist and search for other wait conditions
31       should continue. Non-zero return, -errno on failure and p's pid on
32       success, implies that tasklist_lock is released and wait condition
33       search should terminate.
34
36Kernel Hackers Manual 3.10         June 2019              WAIT_TASK_STOPPED(9)
Impressum