syscall.sh / s390x / clock_gettime

clock_gettime

clock and time functions

sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec *tp)
number260 (0x104)
abicommon
entry pointsys_clock_gettime
sinceLinux 4.16
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
r1260, the syscall number
r2clockid_t which_clock
r3struct __kernel_timespec *tp
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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