syscall.sh / alpha / gettimeofday

gettimeofday

get / set time

sys_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number359 (0x167)
abicommon
entry pointsys_gettimeofday
sinceLinux 5.0
man pagegettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
v0359, the syscall number
a0struct __kernel_old_timeval *tv
a1struct timezone *tz
v0the return value

Then run callsys to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/alpha/gettimeofday