Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptrace_signal

Proto:static int ptrace_signal(int signr, kernel_siginfo_t *info)

Type:int

Parameter:

TypeParameterName
intsignr
kernel_siginfo_t *info
2484  jobctl |= JOBCTL_STOP_DEQUEUED
2485  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
2488  signr = exit_code
2489  If signr == 0 Then Return signr
2492  exit_code = 0
2500  If signr != si_signo Then
2501  clear_siginfo(info)
2502  si_signo = signr
2503  si_errno = 0
2504  si_code = sent by kill, sigsend, raise
2505  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2506  si_pid = task_pid_vnr(parent)
2507  si_uid = from_kuid_munged(current_user_ns(), task_uid(parent))
2509  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
2513  If sigismember( & blocked, signr) Then
2514  send_signal(signr, info, current process, PIDTYPE_PID)
2515  signr = 0
2518  Return signr
Caller
NameDescribe
get_signal