Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Consider @p for a wait by @parent

Proto:static int wait_consider_task(struct wait_opts *wo, int ptrace, struct task_struct *p)

Type:int

Parameter:

TypeParameterName
struct wait_opts *wo
intptrace
struct task_struct *p
1265  exit_state = READ_ONCE(exit state)
1268  If Value for the false possibility is greater at compile time(exit_state == Used in tsk->exit_state: ) Then Return 0
1271  ret = eligible_child(wo, ptrace, p)
1272  If Not ret Then Return ret
1275  If Value for the false possibility is greater at compile time(exit_state == EXIT_TRACE) Then
1280  If Value is more likely to compile time(!ptrace) Then notask_error = 0
1282  Return 0
1285  If Value is more likely to compile time(!ptrace) && Value for the false possibility is greater at compile time(ptrace) Then
1297  If Not ptrace_reparented(p) Then ptrace = 1
1302  If exit_state == EXIT_ZOMBIE Then
1304  If Not delay_group_leader(p) Then
1334  If Value is more likely to compile time(!ptrace) || wo_flags & (WCONTINUED | WEXITED) Then notask_error = 0
1336  Else
1341  notask_error = 0
1348  ret = wait_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
1349  If ret Then Return ret
1357  Return Handle do_wait work for one task in a live, non-stopped state.* read_lock(&tasklist_lock) on entry. If we return zero, we still hold* the lock and this task is uninteresting. If we return nonzero, we have
Caller
NameDescribe
do_wait_threadDo the work of do_wait() for one thread in the group, @tsk
ptrace_do_wait