syscall.sh / ppc64 / clock_gettime

clock_gettime

clock and time functions

sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec *tp)
number246 (0xf6)
abi64
entry pointsys_clock_gettime
sinceLinux 5.0
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
r0246, the syscall number
r3clockid_t which_clock
r4struct __kernel_timespec *tp
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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