Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Force a signal that the process can't ignore: if necessary* we unblock the signal and change any SIG_IGN to SIG_DFL.* Note: If we unblock the signal, we always reset it to SIG_DFL,* since we do not want to have a signal handler that was blocked

Proto:static int force_sig_info_to_task(struct kernel_siginfo *info, struct task_struct *t)

Type:int

Parameter:

TypeParameterName
struct kernel_siginfo *info
struct task_struct *t
1309  sig = si_signo
1311  spin_lock_irqsave( & siglock, flags)
1312  action = action[sig - 1]
1313  ignored = sa_handler == gnore signal
1314  blocked = sigismember( & blocked, sig)
1315  If blocked || ignored Then
1316  sa_handler = default signal handling
1317  If blocked Then
1318  sigdelset( & blocked, sig)
1326  If sa_handler == default signal handling && Not ptrace Then Per task flags (PF_*), defined further below: &= ~r init: ignore fatal signals
1328  ret = send_signal(sig, info, t, PIDTYPE_PID)
1329  spin_unlock_irqrestore( & siglock, flags)
1331  Return ret
Caller
NameDescribe
force_sig_info
force_sig_fault_to_task