函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\exit.c Create Date:2022-07-27 10:03:02
Last Modify:2020-03-17 11:17:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Take down every thread in the group. This is called by fatal signals* as well as by sys_exit_group (below).

函数原型:void do_group_exit(int exit_code)

返回类型:void

参数:

类型参数名称
intexit_code
878  sig等于signal
880  BUG_ON(exit_code & 0x80)
882  如果If true, all threads except ->group_exit_task have pending SIGKILL exit_code等于hread group exit support
884  否则如果非thread_group_empty(当前进程)则
885  sighand等于sighand
887  spin_lock_irq( & siglock)
888  如果If true, all threads except ->group_exit_task have pending SIGKILL exit_code等于hread group exit support
891  否则
896  spin_unlock_irq( & siglock)
899  do_exit(exit_code)
调用者
名称描述
SYSCALL_DEFINE1his kills every thread in the thread group. Note that any externally* wait4()-ing process will get the correct exit code - even if this* thread is not the thread group leader.
get_signal