syscall.sh / loongarch64 / settimeofday

settimeofday

get / set time

sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number170 (0xaa)
abi64
entry pointsys_settimeofday
sinceLinux 5.19
man pagesettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
a7170, the syscall number
a0struct __kernel_old_timeval *tv
a1struct timezone *tz
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/settimeofday