| Function report | 
| Source Code: kernel\taskstats.c | Create Date:2022-07-28 11:49:34 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Send pid data out on exit
Proto:void taskstats_exit(struct task_struct *tsk, int group_dead)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| int | group_dead | 
| 596 | If Not family_registered Then Return | 
| 602 | size = taskstats_packet_size() | 
| 604 | is_thread_group = Not Not taskstats_tgid_alloc(tsk) | 
| 605 | If is_thread_group Then | 
| 609 | fill_tgid_exit(tsk) | 
| 612 | listeners = raw_cpu_ptr( & listener_array) | 
| 613 | If list_empty - tests whether a list is empty*@head: the list to test. Then Return | 
| 616 | rc = prepare_reply(NULL, TASKSTATS_CMD_NEW, & rep_skb, size) | 
| 617 | If rc < 0 Then Return | 
| 630 | If Not is_thread_group || Not group_dead Then Go to send | 
| 638 | No 3D Now!(stats, stats, size of stats ) | 
| 640 | send : | 
| 642 | Return | 
| 643 | err : | 
| 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 |