Function report

linux kernel

5.5.9

Brick Technologies Co., Ltd

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

Name:sys_rt_sigprocmask - change the list of currently blocked signals

Proto:SYSCALL_DEFINE4(rt_sigprocmask, int, how, sigset_t *, nset, sigset_t *, oset, size_t, sigsetsize)

Type:

Parameter:Nothing

3017  If sigsetsize != sizeof(sigset_t) Then Return -Invalid argument
3020  old_set = blocked
3022  If nset Then
3023  If copy_from_user( & new_set, nset, sizeof(sigset_t)) Then Return -Bad address
3025  sigdelsetmask( & new_set, sigmask(SIGKILL) | sigmask(SIGSTOP))
3027  error = This is also useful for kernel threads that want to temporarily * (or permanently) block certain signals
3028  If error Then Return error
3032  If oset Then
3033  If copy_to_user(oset, & old_set, sizeof(sigset_t)) Then Return -Bad address
3037  Return 0