Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:int

Parameter:

TypeParameterName
struct wait_opts *wo
struct task_struct *p
1211  If Not Value for the false possibility is greater at compile time(wo_flags & WCONTINUED) Then Return 0
1214  If Not ( Per task flags (PF_*), defined further below: & SIGCONT since WCONTINUED reap ) Then Return 0
1217  spin_lock_irq( & siglock)
1219  If Not ( Per task flags (PF_*), defined further below: & SIGCONT since WCONTINUED reap ) Then
1220  spin_unlock_irq( & siglock)
1221  Return 0
1223  If Not Value for the false possibility is greater at compile time(wo_flags & Don't reap, just poll status. ) Then Per task flags (PF_*), defined further below: &= ~SIGCONT since WCONTINUED reap
1225  uid = from_kuid_munged(current_user_ns(), task_uid(p))
1226  spin_unlock_irq( & siglock)
1228  pid = task_pid_vnr(p)
1229  get_task_struct(p)
1230  read_unlock( & tasklist_lock)
1231  sched_annotate_sleep()
1232  If wo_rusage Then getrusage(p, sys_wait4() uses this , wo_rusage)
1234  put_task_struct(p)
1236  infop = wo_info
1237  If Not infop Then
1238  wo_stat = 0xffff
1239  Else
1240  cause = stopped child has continued
1241  pid = pid
1242  uid = uid
1243  status = SIGCONT
1245  Return pid
Caller
NameDescribe
wait_consider_taskConsider @p for a wait by @parent