syscall.sh / riscv64 / nanosleep

nanosleep

high-resolution sleep

sys_nanosleep(struct __kernel_timespec *rqtp, struct __kernel_timespec *rmtp)
number101 (0x65)
abi64
entry pointsys_nanosleep
sinceLinux 4.15
man pagenanosleep(2)
sourceelixir.bootlin.com

Registers

registervalue
a7101, the syscall number
a0struct __kernel_timespec *rqtp
a1struct __kernel_timespec *rmtp
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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