syscall.sh / x64 / settimeofday

settimeofday

get / set time

sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number164 (0xa4)
abicommon
entry pointsys_settimeofday
sinceLinux 3.3
man pagesettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
rax164, the syscall number
rdistruct __kernel_old_timeval *tv
rsistruct timezone *tz
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/settimeofday