futex_waitv on x64
wait for FUTEX_WAKE operation on a vector of futexes
sys_futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, unsigned int flags, struct __kernel_timespec *timeout, clockid_t clockid)
| number | 449 (0x1c1) |
|---|---|
| abi | common |
| entry point | sys_futex_waitv |
| since | Linux 5.16 |
| man page | futex_waitv(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 449, the syscall number |
rdi | struct futex_waitv *waiters |
rsi | unsigned int nr_futexes |
rdx | unsigned int flags |
r10 | struct __kernel_timespec *timeout |
r8 | clockid_t clockid |
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 449
- arm64 449
- arm 449
- riscv64 449
- ia32 449
- x32 1073742273
- loongarch64 449
- ppc64 449
- ppc 449
- s390x 449
- mips64 5449
- mipsn32 6449
- mipso32 4449
- alpha 559
- arc 449
- csky 449
- hexagon 449
- ia64 1473, removed in 6.7
- m68k 449
- microblaze 449
- nds32 449, removed in 5.18
- nios2 449
- openrisc 449
- parisc 449
- sh 449
- sparc 449
- sparc64 449
- xtensa 449
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/futex_waitv