Function report |
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 activity | Download SCCT | Chinese |
Name:next_signal
Proto:int next_signal(struct sigpending *pending, sigset_t *mask)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sigpending * | pending | |
| sigset_t * | mask |
| 211 | sig = 0 |
| 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 |
| 232 | If Not x Then Continue |
| 234 | 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. + i * _NSIG_BPW + 1 |
| 235 | Break |
| 237 | Break |
| 239 | Case _NSIG_WORDS == 2 |
| 241 | If Not x Then Break |
| 243 | 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. + _NSIG_BPW + 1 |
| 244 | Break |
| 246 | Case _NSIG_WORDS == 1 |
| 248 | Break |
| 251 | Return sig |
| Name | Describe |
|---|---|
| __dequeue_signal | |
| signalfd_poll |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |