Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sigsuspend

Proto:static int sigsuspend(sigset_t *set)

Type:int

Parameter:

TypeParameterName
sigset_t *set
4434  saved_sigmask = blocked
4435  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.
4437  When Not signal_pending(current process) cycle
4438  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (TASK_INTERRUPTIBLE)
4439  schedule()
4441  Higher-quality implementation, used if TIF_RESTORE_SIGMASK doesn't exist.
4442  Return -start if no handler..
Caller
NameDescribe
SYSCALL_DEFINE2sys_rt_sigsuspend - replace the signal mask for a value with the*@unewset value until a signal is received*@unewset: new signal mask value*@sigsetsize: size of sigset_t type
COMPAT_SYSCALL_DEFINE2