函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int force_sig_info_to_task(struct kernel_siginfo *info, struct task_struct *t)

返回类型:int

参数:

类型参数名称
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( & 需要阻塞的信号, sig)
1315  如果blockedignored
1316  sa_handler等于default signal handling
1317  如果blocked
1326  如果sa_handler恒等于default signal handling 且非ptrace任务标志与等于r init: ignore fatal signals 的反
1328  ret等于send_signal(sig, info, t, 单一进程)
1329  spin_unlock_irqrestore( & siglock, flags)
1331  返回:ret
调用者
名称描述
force_sig_info强制信号发送
force_sig_fault_to_task