rt_sigsuspend on x64
wait for a signal
sys_rt_sigsuspend(sigset_t *unewset, size_t sigsetsize)
| number | 130 (0x82) |
|---|---|
| abi | common |
| entry point | sys_rt_sigsuspend |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | rt_sigsuspend(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 130, the syscall number |
rdi | sigset_t *unewset |
rsi | size_t sigsetsize |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 179
- arm64 133
- arm 179
- riscv64 133
- ia32 179
- x32 1073741954
- loongarch64 133
- ppc64 178
- ppc 178
- s390x 179
- mips64 5128
- mipsn32 6128
- mipso32 4199
- alpha 357
- arc 133
- blackfin 179, removed in 4.17
- cris 179, removed in 4.17
- csky 133
- frv 179, removed in 4.17
- hexagon 133
- ia64 1182, removed in 6.7
- m32r 179, removed in 4.17
- m68k 179
- metag 133, removed in 4.17
- microblaze 179
- mn10300 179, removed in 4.17
- nds32 133, removed in 5.18
- nios2 133
- openrisc 133
- parisc 179
- score 133, removed in 4.17
- sh 179
- sparc 107
- sparc64 107
- tilegx 133, removed in 4.17
- tilepro 133, removed in 4.17
- xtensa 231
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/rt_sigsuspend