syscall.sh / x32 / clock_gettime

clock_gettime

clock and time functions

sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec *tp)
number1073742052 (0x400000e4)
abicommon
entry pointsys_clock_gettime
sinceLinux 3.4
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742052, 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/x32/clock_gettime