syscall.sh / x64 / nanosleep

nanosleep

high-resolution sleep

sys_nanosleep(struct __kernel_timespec *rqtp, struct __kernel_timespec *rmtp)
number35 (0x23)
abicommon
entry pointsys_nanosleep
sinceLinux 3.3
man pagenanosleep(2)
sourceelixir.bootlin.com

Registers

registervalue
rax35, the syscall number
rdistruct __kernel_timespec *rqtp
rsistruct __kernel_timespec *rmtp
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/nanosleep