rt_sigtimedwait on x64
synchronously wait for queued signals
sys_rt_sigtimedwait(const sigset_t *uthese, siginfo_t *uinfo, const struct __kernel_timespec *uts, size_t sigsetsize)
| number | 128 (0x80) |
|---|---|
| abi | 64 |
| entry point | sys_rt_sigtimedwait |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | rt_sigtimedwait(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 128, the syscall number |
rdi | const sigset_t *uthese |
rsi | siginfo_t *uinfo |
rdx | const struct __kernel_timespec *uts |
r10 | 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 177
- arm64 137
- arm 177
- riscv64 137
- ia32 177
- x32 1073742347
- loongarch64 137
- ppc64 176
- ppc 176
- s390x 177
- mips64 5126
- mipsn32 6126
- mipso32 4197
- alpha 355
- arc 137
- blackfin 177, removed in 4.17
- cris 177, removed in 4.17
- csky 137
- frv 177, removed in 4.17
- hexagon 137
- ia64 1183, removed in 6.7
- m32r 177, removed in 4.17
- m68k 177
- metag 137, removed in 4.17
- microblaze 177
- mn10300 177, removed in 4.17
- nds32 137, removed in 5.18
- nios2 137
- openrisc 137
- parisc 177
- score 137, removed in 4.17
- sh 177
- sparc 105
- sparc64 105
- tilegx 137, removed in 4.17
- tilepro 137, removed in 4.17
- xtensa 229
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/rt_sigtimedwait