syscall.sh / mipsn32 / gettimeofday
gettimeofday
get / set time
compat_sys_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
| number | 6094 (0x17ce) |
|---|---|
| abi | n32 |
| entry point | compat_sys_gettimeofday |
| since | Linux 5.0 |
| man page | gettimeofday(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6094, the syscall number |
a0 | struct __kernel_old_timeval *tv |
a1 | struct timezone *tz |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 96
- x86 78
- arm64 169
- arm 78
- riscv64 169
- x32 1073741920
- loongarch64 169
- ppc64 78
- ppc 78
- s390x 78
- mips64 5094
- mipso32 4078
- alpha 359
- arc 169
- csky 169
- hexagon 169
- m68k 78
- microblaze 78
- nios2 169
- openrisc 169
- parisc 78
- sh 78
- sparc 116
- sparc64 116
- xtensa 192
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/gettimeofday