syscall.sh / x64 / clock_nanosleep

clock_nanosleep

high-resolution sleep with specifiable clock

sys_clock_nanosleep(clockid_t which_clock, int flags, const struct __kernel_timespec *rqtp, struct __kernel_timespec *rmtp)
number230 (0xe6)
abicommon
entry pointsys_clock_nanosleep
sinceLinux 3.3
man pageclock_nanosleep(2)
sourceelixir.bootlin.com

Registers

registervalue
rax230, the syscall number
rdiclockid_t which_clock
rsiint flags
rdxconst struct __kernel_timespec *rqtp
r10struct __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/clock_nanosleep