Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\exit.c Create Date:2022-07-28 09:03:20
Last Modify:2020-03-17 11:17:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:void do_group_exit(int exit_code)

Type:void

Parameter:

TypeParameterName
intexit_code
878  sig = signal
880  BUG_ON(exit_code & 0x80)
882  If If true, all threads except ->group_exit_task have pending SIGKILL Then exit_code = hread group exit support
884  Else if Not thread_group_empty(current process) Then
885  sighand = sighand
887  spin_lock_irq( & siglock)
888  If If true, all threads except ->group_exit_task have pending SIGKILL Then exit_code = hread group exit support
891  Else
896  spin_unlock_irq( & siglock)
899  do_exit(exit_code)
Caller
NameDescribe
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