函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:SYSCALL_DEFINE3(sigprocmask, int, how, old_sigset_t __user *, nset, old_sigset_t __user *, oset)

返回类型:

参数:

4186  old_set等于sig[0]
4188  如果nset
4189  如果copy_from_user( & new_set, nset, nset的长度)则返回:负EFAULT
4192  new_blocked等于blocked
4195  :how恒等于r blocking signals
4197  退出
4198  :how恒等于r unblocking signals
4200  退出
4202  信号[0]等于new_set
4203  退出
4204  默认
4205  返回:负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  如果oset
4212  如果copy_to_user(oset, & old_set, oset的长度)则返回:负EFAULT
4216  返回:0