1. NAME▲
wait_task_stopped - Wait for TASK_STOPPED or TASK_TRACED
2. SYNOPSIS ▲
int wait_task_stopped(struct wait_opts * wo , int ptrace , struct task_struct * p );
3. ARGUMENTS ▲
wo
wait options
ptrace
is the wait for ptrace
p
task to wait for
4. DESCRIPTION ▲
Handle sys_wait4 work for p in state TASK_STOPPED or TASK_TRACED.
5. CONTEXT ▲
read_lock(tasklist_lock), which is released if return value is non-zero. Also, grabs and releases p->sighand->siglock.
6. RETURNS ▲
0 if wait condition didnAqt exist and search for other wait conditions should continue. Non-zero return, -errno on failure and pAqs pid on success, implies that tasklist_lock is released and wait condition search should terminate.
7. COPYRIGHT ▲