函数逻辑报告 |
Source Code:kernel\exit.c |
Create Date:2022-07-27 10:02:51 |
| Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:find_child_reaper
函数原型:static struct task_struct *find_child_reaper(struct task_struct *father, struct list_head *dead)__releases(&tasklist_lock) __acquires(&tasklist_lock)
返回类型:struct task_struct
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | father | |
| struct list_head * | dead |
| 506 | pid_ns等于task_active_pid_ns(father) |
| 510 | 如果此条件成立可能性大(为编译器优化)(reaper != father)则返回:reaper |
| 513 | reaper等于find_alive_thread(father) |
| 514 | 如果reaper则 |
| 519 | write_unlock_irq( & tasklist_lock) |
| 522 | 删除链表项并重新初始化 |
| 523 | release_task(p) |
| 527 | write_lock_irq( & tasklist_lock) |
| 529 | 返回:father |
| 名称 | 描述 |
|---|---|
| forget_original_parent | This does two things:* A. Make init inherit all the child processes* B. Check to see if any process groups have become orphaned* as a result of our exiting, and if they have any stopped* jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |