clock_gettime on tilepro
clock and time functions
sys_clock_gettime(clockid_t which_clock, struct timespec *tp)
| number | 113 (0x71) |
|---|---|
| abi | common |
| entry point | sys_clock_gettime |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | clock_gettime(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 113, the syscall number |
r0 | clockid_t which_clock |
r1 | struct timespec *tp |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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 228
- x86 265
- arm64 113
- arm 263
- riscv64 113
- ia32 265
- x32 1073742052
- loongarch64 113
- ppc64 246
- ppc 246
- s390x 260
- mips64 5222
- mipsn32 6226
- mipso32 4263
- alpha 420
- arc 113
- blackfin 266, removed in 4.17
- cris 265, removed in 4.17
- csky 113
- frv 265, removed in 4.17
- hexagon 113
- ia64 1254, removed in 6.7
- m32r 265, removed in 4.17
- m68k 260
- metag 113, removed in 4.17
- microblaze 265
- mn10300 265, removed in 4.17
- nds32 113, removed in 5.18
- nios2 113
- openrisc 113
- parisc 256
- score 113, removed in 4.17
- sh 265
- sparc 257
- sparc64 257
- tilegx 113, removed in 4.17
- xtensa 245
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/clock_gettime?kernel=all