settimeofday on score
get / set time
sys_settimeofday(struct timeval *tv, struct timezone *tz)
| number | 170 (0xaa) |
|---|---|
| abi | common |
| entry point | sys_settimeofday |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | settimeofday(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 170, the syscall number |
r4 | struct timeval *tv |
r5 | struct timezone *tz |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 164
- x86 79
- arm64 170
- arm 79
- riscv64 170
- ia32 79
- x32 1073741988
- loongarch64 170
- ppc64 79
- ppc 79
- s390x 79
- mips64 5159
- mipsn32 6159
- mipso32 4079
- alpha 360
- arc 170
- blackfin 79, removed in 4.17
- cris 79, removed in 4.17
- csky 170
- frv 79, removed in 4.17
- hexagon 170
- ia64 1088, removed in 6.7
- m32r 79, removed in 4.17
- m68k 79
- metag 170, removed in 4.17
- microblaze 79
- mn10300 79, removed in 4.17
- nds32 170, removed in 5.18
- nios2 170
- openrisc 170
- parisc 79
- sh 79
- sparc 122
- sparc64 122
- tilegx 170, removed in 4.17
- tilepro 170, removed in 4.17
- xtensa 193
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/settimeofday?kernel=all