| Function report | 
| Source Code: kernel\pid_namespace.c | Create Date:2022-07-28 11:20:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:zap_pid_ns_processes
Proto:void zap_pid_ns_processes(struct pid_namespace *pid_ns)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct pid_namespace * | pid_ns | 
| 183 | me = current process | 
| 184 | init_pids = If thread_group_leader(me) Then 1 Else 2 | 
| 195 | spin_lock_irq( & siglock) | 
| 196 | sa_handler = gnore signal | 
| 197 | spin_unlock_irq( & siglock) | 
| 213 | read_lock( & tasklist_lock) | 
| 214 | nr = 2 | 
| 216 | task = pid_task(pid, PIDTYPE_PID) | 
| 217 | If task && Not __fatal_signal_pending(task) Then send signal info to all the members of a group | 
| 220 | read_unlock( & tasklist_lock) | 
| 228 | Do | 
| 230 | rc = kernel_wait4( - 1, NULL, Wait on all children, regardless of type , NULL) | 
| 249 | cycle | 
| 251 | If pid_allocated == init_pids Then Break | 
| 253 | schedule() | 
| 257 | If group exit code if this pidns was rebooted Then group_exit_code = group exit code if this pidns was rebooted | 
| 260 | acct_exit_ns(pid_ns) | 
| 261 | Return | 
| 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 |