函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\exit.c Create Date:2022-07-27 10:03:14
Last Modify:2020-03-17 11:17:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int wait_task_continued(struct wait_opts *wo, struct task_struct *p)

返回类型:int

参数:

类型参数名称
struct wait_opts *wo
struct task_struct *p
1211  如果非此条件成立可能性小(为编译器优化)(wo_flags & WCONTINUED)则返回:0
1214  如果非任务标志按位与SIGCONT since WCONTINUED reap 的值则返回:0
1217  spin_lock_irq( & siglock)
1219  如果非任务标志按位与SIGCONT since WCONTINUED reap 的值则
1220  spin_unlock_irq( & siglock)
1221  返回:0
1223  如果非此条件成立可能性小(为编译器优化)(wo_flags & Don't reap, just poll status. )则任务标志与等于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  如果wo_rusagegetrusage(p, sys_wait4() uses this , wo_rusage)
1234  put_task_struct(p)
1236  infop等于wo_info
1237  如果非infop
1238  wo_stat等于0xffff
1239  否则
1240  cause等于stopped child has continued
1241  pid等于pid
1242  uid等于uid
1243  status等于SIGCONT
1245  返回:pid
调用者
名称描述
wait_consider_taskConsider @p for a wait by @parent