Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
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) |
1237 | If Not infop Then |
1238 | wo_stat = 0xffff |
1239 | Else |
1245 | Return pid |
Name | Describe |
---|---|
wait_consider_task | Consider @p for a wait by @parent |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |