futex on arm64

fast user-space locking

sys_futex(u32 *uaddr, int op, u32 val, const struct __kernel_timespec *utime, u32 *uaddr2, u32 val3)
number98 (0x62)
abi64
entry pointsys_futex
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagefutex(2)
sourceelixir.bootlin.com

Registers

registervalue
x898, the syscall number
x0u32 *uaddr
x1int op
x2u32 val
x3const struct __kernel_timespec *utime
x4u32 *uaddr2
x5u32 val3
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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