Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is also useful for kernel threads that want to temporarily* (or permanently) block certain signals.* NOTE! Unlike the user-mode sys_sigprocmask(), the kernel* interface happily blocks "unblockable" signals like SIGKILL* and friends.

Proto:int sigprocmask(int how, sigset_t *set, sigset_t *oldset)

Type:int

Parameter:

TypeParameterName
inthow
sigset_t *set
sigset_t *oldset
2929  tsk = current process
2933  If oldset Then oldset = blocked
2937  Case how == r blocking signals
2938  sigorsets( & newset, & blocked, set)
2939  Break
2940  Case how == r unblocking signals
2941  sigandnsets( & newset, & blocked, set)
2942  Break
2943  Case how == r setting the signal mask
2944  newset = set
2945  Break
2946  Default
2947  Return -EINVAL
2950  __set_current_blocked( & newset)
2951  Return 0
Caller
NameDescribe
SYSCALL_DEFINE4sys_rt_sigprocmask - change the list of currently blocked signals*@how: whether to add, remove, or set signals*@nset: stores pending signals*@oset: previous value of signal mask if non-null*@sigsetsize: size of sigset_t type
COMPAT_SYSCALL_DEFINE4