futex_requeue on x64
sys_futex_requeue(struct futex_waitv *waiters, unsigned int flags, int nr_wake, int nr_requeue)
| number | 456 (0x1c8) |
|---|---|
| abi | common |
| entry point | sys_futex_requeue |
| since | Linux 6.7 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 456, the syscall number |
rdi | struct futex_waitv *waiters |
rsi | unsigned int flags |
rdx | int nr_wake |
r10 | int nr_requeue |
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 456
- arm64 456
- arm 456
- riscv64 456
- ia32 456
- x32 1073742280
- loongarch64 456
- ppc64 456
- ppc 456
- s390x 456
- mips64 5456
- mipsn32 6456
- mipso32 4456
- alpha 566
- arc 456
- csky 456
- hexagon 456
- m68k 456
- microblaze 456
- nios2 456
- openrisc 456
- parisc 456
- sh 456
- sparc 456
- sparc64 456
- xtensa 456
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/futex_requeue