nanosleep on arm64

high-resolution sleep

sys_nanosleep(struct __kernel_timespec *rqtp, struct __kernel_timespec *rmtp)
number101 (0x65)
abi64
entry pointsys_nanosleep
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagenanosleep(2)
sourceelixir.bootlin.com

Registers

registervalue
x8101, the syscall number
x0struct __kernel_timespec *rqtp
x1struct __kernel_timespec *rmtp
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/nanosleep