Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__set_current_blocked

Proto:void __set_current_blocked(const sigset_t *newset)

Type:void

Parameter:

TypeParameterName
const sigset_t *newset
2905  tsk = current process
2911  If sigequalsets( & blocked, newset) Then Return
2914  spin_lock_irq( & siglock)
2915  __set_task_blocked(tsk, newset)
2916  spin_unlock_irq( & siglock)
Caller
NameDescribe
set_current_blockedset_current_blocked - change current->blocked mask*@newset: new mask* It is wrong to change ->blocked directly, this helper should be used* to ensure the process can't miss a shared signal we are going to block.
sigprocmaskThis 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.
restore_saved_sigmask