syscall.sh / nios2 / settimeofday

settimeofday

get / set time

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

Registers

registervalue
r2170, the syscall number
r4struct __kernel_old_timeval *tv
r5struct timezone *tz
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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