Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:next_signal

Proto:int next_signal(struct sigpending *pending, sigset_t *mask)

Type:int

Parameter:

TypeParameterName
struct sigpending *pending
sigset_t *mask
211  sig = 0
213  s = sig
214  m = sig
220  x = s & ~m
221  If x Then
222  If x & Given the mask, find the first available signal that should be serviced. Then x &= Given the mask, find the first available signal that should be serviced.
224  sig = z - find first zero bit in word*@word: The word to search* Undefined if no zero exists, so code should check against ~0UL first. + 1
225  Return sig
229  Default
230  When i < _NSIG_WORDS cycle
237  Break
239  Case _NSIG_WORDS == 2
240  x = s[1] & ~m[1]
241  If Not x Then Break
244  Break
246  Case _NSIG_WORDS == 1
248  Break
251  Return sig
Caller
NameDescribe
__dequeue_signal
signalfd_poll