syscall.sh / csky / clock_gettime

clock_gettime

clock and time functions

sys_clock_gettime32(clockid_t which_clock, struct old_timespec32 *tp)
number113 (0x71)
abitime32
entry pointsys_clock_gettime32
sinceLinux 4.20
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
r7113, the syscall number
a0clockid_t which_clock
a1struct old_timespec32 *tp
a0the return value

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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