syscall.sh / arm64 / gettimeofday

gettimeofday

get / set time

sys_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number169 (0xa9)
abi64
entry pointsys_gettimeofday
sinceLinux 3.7
man pagegettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
x8169, the syscall number
x0struct __kernel_old_timeval *tv
x1struct timezone *tz
x0the 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/arm64/gettimeofday