Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline bool wants_signal(int sig, struct task_struct *p)

Type:bool

Parameter:

TypeParameterName
intsig
struct task_struct *p
969  If sigismember( & blocked, sig) Then Return false
972  If Per task flags (PF_*), defined further below: & Getting shut down Then Return false
975  If sig == SIGKILL Then Return true
978  If task_is_stopped_or_traced(p) Then Return false
981  Return task_curr(p) || Not signal_pending(p)
Caller
NameDescribe
complete_signal