Function report |
Source Code:kernel\exit.c |
Create Date:2022-07-28 09:02:23 |
| Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:release_task
Proto:void release_task(struct task_struct *p)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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) |
| 214 | zap_leader = 0 |
| 215 | leader = group_leader |
| 216 | If leader != p && thread_group_empty(leader) && exit state == EXIT_ZOMBIE Then |
| 223 | zap_leader = do_notify_parent(leader, exit signal) |
| 224 | If zap_leader Then exit state = Used in tsk->exit_state: |
| 228 | write_unlock_irq( & tasklist_lock) |
| 229 | release_thread(p) |
| 233 | If Value for the false possibility is greater at compile time(zap_leader) Then Go to repeat |
| Name | Describe |
|---|---|
| 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 |
| 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 |