syscall.sh / riscv64 / settimeofday
settimeofday
get / set time
sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
| number | 170 (0xaa) |
|---|---|
| abi | 64 |
| entry point | sys_settimeofday |
| since | Linux 4.15 |
| man page | settimeofday(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 170, the syscall number |
a0 | struct __kernel_old_timeval *tv |
a1 | struct timezone *tz |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 164
- x86 79
- arm64 170
- arm 79
- x32 1073741988
- loongarch64 170
- ppc64 79
- ppc 79
- s390x 79
- mips64 5159
- mipsn32 6159
- mipso32 4079
- alpha 360
- arc 170
- csky 170
- hexagon 170
- m68k 79
- microblaze 79
- nios2 170
- openrisc 170
- parisc 79
- sh 79
- sparc 122
- sparc64 122
- xtensa 193
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/settimeofday