syscall.sh / sh / clock_nanosleep

clock_nanosleep

high-resolution sleep with specifiable clock

sys_clock_nanosleep_time32(clockid_t which_clock, int flags, struct old_timespec32 *rqtp, struct old_timespec32 *rmtp)
number267 (0x10b)
abicommon
entry pointsys_clock_nanosleep_time32
sinceLinux 5.0
man pageclock_nanosleep(2)
sourceelixir.bootlin.com

Registers

registervalue
r3267, the syscall number
r4clockid_t which_clock
r5int flags
r6struct old_timespec32 *rqtp
r7struct old_timespec32 *rmtp
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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