函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-27 10:16:41
Last Modify:2020-03-17 13:28:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void do_jobctl_trap(void)

返回类型:void

参数:

2419  signal等于signal
2420  signr等于jobctl按位与signr of the last group stop
2422  如果ptrace按位与SEIZE used, enable new behavior
2423  如果非hread group stop support, overloads group_exit_code too 且非see SIGNAL_* flags below 按位与job control stop in effect 的值则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  否则
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
调用者
名称描述
get_signal