Function report

linux kernel

5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2020-09-18 20:21:25
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload PLEAChinese

Name:sys_sigprocmask - examine and change blocked signals

Proto:SYSCALL_DEFINE3(sigprocmask, int, how, old_sigset_t *, nset, old_sigset_t *, 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 -Bad address
4192  new_blocked = blocked
4195  Case how == for blocking signals
4197  Break
4200  Break
4202  sig[0] = new_set
4203  Break
4204  Default
4205  Return -Invalid argument
4208  change current->blocked mask
4211  If oset Then
4212  If copy_to_user(oset, & old_set, size of oset ) Then Return -Bad address
4216  Return 0