函数逻辑报告 |
Source Code:kernel\exit.c |
Create Date:2022-07-27 10:03:14 |
| Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_rusage则getrusage(p, sys_wait4() uses this , wo_rusage) |
| 1234 | put_task_struct(p) |
| 1237 | 如果非infop则 |
| 1238 | wo_stat等于0xffff |
| 1239 | 否则 |
| 1245 | 返回:pid |
| 名称 | 描述 |
|---|---|
| wait_consider_task | Consider @p for a wait by @parent |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |