函数逻辑报告 |
Source Code:kernel\exit.c |
Create Date:2022-07-27 10:02:04 |
Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:release_task
函数原型:void release_task(struct task_struct *p)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | p |
195 | repeat : |
199 | atomic_dec( & processes) |
202 | proc_flush_task(p) |
203 | cgroup_release(p) |
205 | write_lock_irq( & tasklist_lock) |
206 | 回收跟踪 |
214 | zap_leader等于0 |
216 | 如果leader不等于p且thread_group_empty(leader)且进程退出时状态恒等于EXIT_ZOMBIE则 |
228 | write_unlock_irq( & tasklist_lock) |
229 | release_thread(p) |
233 | 如果此条件成立可能性小(为编译器优化)(zap_leader)则转到:repeat |
名称 | 描述 |
---|---|
find_child_reaper | |
exit_notify | Send signals to all our closest relatives so that they know* to properly mourn us.. |
wait_task_zombie | Handle sys_wait4 work for one task in state EXIT_ZOMBIE. We hold* 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 |
de_thread | This function makes sure the current process has its own signal table,* so that flush_signal_handlers can later reset the handlers without* disturbing other processes. (Other processes might share the signal* table via the CLONE_SIGHAND option to clone().) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |