syscall.sh / alpha / futex

futex

fast user-space locking

sys_futex(u32 *uaddr, int op, u32 val, const struct __kernel_timespec *utime, u32 *uaddr2, u32 val3)
number394 (0x18a)
abicommon
entry pointsys_futex
sinceLinux 5.0
man pagefutex(2)
sourceelixir.bootlin.com

Registers

registervalue
v0394, the syscall number
a0u32 *uaddr
a1int op
a2u32 val
a3const struct __kernel_timespec *utime
a4u32 *uaddr2
a5u32 val3
v0the return value

Then run callsys to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/alpha/futex