函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__set_current_blocked

函数原型:void __set_current_blocked(const sigset_t *newset)

返回类型:void

参数:

类型参数名称
const sigset_t *newset
2905  tsk等于当前进程
2911  如果sigequalsets( & 需要阻塞的信号, newset)则返回
2914  spin_lock_irq( & siglock)
2915  __set_task_blocked(tsk, newset)
2916  spin_unlock_irq( & siglock)
调用者
名称描述
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