syscall.sh / openrisc / gettimeofday

gettimeofday

get / set time

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

Registers

registervalue
r11169, the syscall number
r3struct __kernel_old_timeval *tv
r4struct timezone *tz
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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