Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sys_sigprocmask - examine and change blocked signals*@how: whether to add, remove, or set signals*@nset: signals to add or remove (if non-null)*@oset: previous value of signal mask if non-null* Some platforms have their own version with special arguments;

Proto:SYSCALL_DEFINE3(sigprocmask, int, how, old_sigset_t __user *, nset, old_sigset_t __user *, oset)

Type:

Parameter:Nothing

4186  old_set = sig[0]
4188  If nset Then
4189  If copy_from_user( & new_set, nset, size of nset ) Then Return -EFAULT
4192  new_blocked = blocked
4195  Case how == r blocking signals
4197  Break
4198  Case how == r unblocking signals
4200  Break
4202  sig[0] = new_set
4203  Break
4204  Default
4205  Return -EINVAL
4208  set_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.
4211  If oset Then
4212  If copy_to_user(oset, & old_set, size of oset ) Then Return -EFAULT
4216  Return 0