函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Test if P wants to take SIG. After we've checked all threads with this,* it's equivalent to finding no threads not blocking SIG. Any threads not* blocking SIG were ruled out because they are not running and already* have pending signals

函数原型:static inline bool wants_signal(int sig, struct task_struct *p)

返回类型:bool

参数:

类型参数名称
intsig
struct task_struct *p
969  如果sigismember( & 需要阻塞的信号, sig)则返回:false
972  如果任务标志按位与Getting shut down 则返回:false
975  如果sig恒等于SIGKILL则返回:true
978  如果task_is_stopped_or_traced(p)则返回:false
981  返回:task_curr(p)或非signal_pending(p)
调用者
名称描述
complete_signal