syscall.sh / x86 / clock_gettime64

clock_gettime64

clock and time functions

sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec *tp)
number403 (0x193)
abii386
entry pointsys_clock_gettime
sinceLinux 5.1
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
eax403, the syscall number
ebxclockid_t which_clock
ecxstruct __kernel_timespec *tp
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/clock_gettime64