rt_sigqueueinfo on x64
queue a signal and data
sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t *uinfo)
| number | 129 (0x81) |
|---|---|
| abi | 64 |
| entry point | sys_rt_sigqueueinfo |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | rt_sigqueueinfo(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 129, the syscall number |
rdi | pid_t pid |
rsi | int sig |
rdx | siginfo_t *uinfo |
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 178
- arm64 138
- arm 178
- riscv64 138
- ia32 178
- x32 1073742348
- loongarch64 138
- ppc64 177
- ppc 177
- s390x 178
- mips64 5127
- mipsn32 6127
- mipso32 4198
- alpha 356
- arc 138
- blackfin 178, removed in 4.17
- cris 178, removed in 4.17
- csky 138
- frv 178, removed in 4.17
- hexagon 138
- ia64 1180, removed in 6.7
- m32r 178, removed in 4.17
- m68k 178
- metag 138, removed in 4.17
- microblaze 178
- mn10300 178, removed in 4.17
- nds32 138, removed in 5.18
- nios2 138
- openrisc 138
- parisc 178
- score 138, removed in 4.17
- sh 178
- sparc 106
- sparc64 106
- tilegx 138, removed in 4.17
- tilepro 138, removed in 4.17
- xtensa 230
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/rt_sigqueueinfo