Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:16:43
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_jobctl_trap - take care of ptrace jobctl traps* When PT_SEIZED, it's used for both group stop and explicit* SEIZE/INTERRUPT traps. Both generate PTRACE_EVENT_STOP trap with* accompanying siginfo. If stopped, lower eight bits of exit_code contain

Proto:static void do_jobctl_trap(void)

Type:void

Parameter:Nothing

2419  signal = signal
2420  signr = jobctl & signr of the last group stop
2422  If ptrace & SEIZE used, enable new behavior Then
2423  If Not hread group stop support, overloads group_exit_code too && Not (see SIGNAL_* flags below & job control stop in effect ) Then signr = SIGTRAP
2426  WARN_ON_ONCE(!signr)
2427  ptrace_do_notify(signr, signr | (Extended result codes which enabled by means other than options. << 8), child has stopped )
2429  Else
2430  WARN_ON_ONCE(!signr)
2431  This must be called with current->sighand->siglock held.* This should be the path for all ptrace stops.* We always set current->last_siginfo while stopped here.* That makes it a way to test a stopped process for
2432  exit_code = 0
Caller
NameDescribe
get_signal