syscall.sh / x64 / clock_gettime

clock_gettime

clock and time functions

sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec *tp)
number228 (0xe4)
abicommon
entry pointsys_clock_gettime
sinceLinux 3.3
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
rax228, the syscall number
rdiclockid_t which_clock
rsistruct __kernel_timespec *tp
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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