clock_adjtime on metag
tune kernel clock
sys_clock_adjtime(clockid_t which_clock, struct timex *tx)
| number | 266 (0x10a) |
|---|---|
| abi | common |
| kconfig | CONFIG_POSIX_TIMERS |
| entry point | sys_clock_adjtime |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | clock_adjtime(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 266, the syscall number |
D1Ar1 | clockid_t which_clock |
D0Ar2 | struct timex *tx |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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 305
- x86 343
- arm64 266
- arm 372
- riscv64 266
- ia32 343
- x32 1073742129
- loongarch64 266
- ppc64 347
- ppc 347
- s390x 337
- mips64 5300
- mipsn32 6305
- mipso32 4341
- alpha 499
- arc 266
- blackfin 377, removed in 4.17
- cris 345, removed in 4.17
- csky 266
- hexagon 266
- ia64 1328, removed in 6.7
- m68k 342
- microblaze 373
- nds32 266, removed in 5.18
- nios2 266
- openrisc 266
- parisc 324
- score 266, removed in 4.17
- sh 361
- sparc 334
- sparc64 334
- tilegx 266, removed in 4.17
- tilepro 266, removed in 4.17
- xtensa 329
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/clock_adjtime?kernel=all