| Function report | 
| Source Code: fs\coredump.c | Create Date:2022-07-28 20:30:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:zap_threads
Proto:static int zap_threads(struct task_struct *tsk, struct mm_struct *mm, struct core_state *core_state, int exit_code)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| struct mm_struct * | mm | |
| struct core_state * | core_state | |
| int | exit_code | 
| 367 | spin_lock_irq( & siglock) | 
| 370 | group_exit_task = tsk | 
| 371 | nr = zap_process(tsk, exit_code, 0) | 
| 374 | spin_unlock_irq( & siglock) | 
| 375 | If Value for the false possibility is greater at compile time(nr < 0) Then Return nr | 
| 413 | If g == group_leader Then Continue | 
| 415 | If Per task flags (PF_*), defined further below: & I am a kernel thread Then Continue | 
| 418 | for_each_thread(g, p) | 
| 419 | If Value for the false possibility is greater at compile time(!mm) Then Continue | 
| 421 | If Value for the false possibility is greater at compile time(mm == mm) Then | 
| 422 | lock_task_sighand(p, & flags) | 
| 423 | nr += zap_process(p, exit_code, group exit in progress ) | 
| 425 | unlock_task_sighand(p, & flags) | 
| 427 | Break | 
| 431 | done : | 
| 432 | atomic_set( & nr_threads, nr) | 
| 433 | Return nr | 
| Name | Describe | 
|---|---|
| coredump_wait | 
| 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 |