futex_wake on x64
sys_futex_wake(void *uaddr, unsigned long mask, int nr, unsigned int flags)
| number | 454 (0x1c6) |
|---|---|
| abi | common |
| entry point | sys_futex_wake |
| since | Linux 6.7 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 454, the syscall number |
rdi | void *uaddr |
rsi | unsigned long mask |
rdx | int nr |
r10 | unsigned int flags |
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 454
- arm64 454
- arm 454
- riscv64 454
- ia32 454
- x32 1073742278
- loongarch64 454
- ppc64 454
- ppc 454
- s390x 454
- mips64 5454
- mipsn32 6454
- mipso32 4454
- alpha 564
- arc 454
- csky 454
- hexagon 454
- m68k 454
- microblaze 454
- nios2 454
- openrisc 454
- parisc 454
- sh 454
- sparc 454
- sparc64 454
- xtensa 454
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/futex_wake