函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int sigprocmask(int how, sigset_t *set, sigset_t *oldset)

返回类型:int

参数:

类型参数名称
inthow
sigset_t *set
sigset_t *oldset
2929  tsk等于当前进程
2933  如果oldsetoldset等于需要阻塞的信号
2937  :how恒等于r blocking signals
2938  sigorsets( & newset, & 需要阻塞的信号, set)
2939  退出
2940  :how恒等于r unblocking signals
2941  sigandnsets( & newset, & 需要阻塞的信号, set)
2942  退出
2943  :how恒等于r setting the signal mask
2944  newset等于set
2945  退出
2946  默认
2947  返回:负EINVAL
2950  __set_current_blocked( & newset)
2951  返回:0
调用者
名称描述
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