syscall.sh / parisc / clock_gettime
clock_gettime
clock and time functions
sys_clock_gettime32(clockid_t which_clock, struct old_timespec32 *tp)
| number | 256 (0x100) |
|---|---|
| abi | 32 |
| entry point | sys_clock_gettime32 |
| since | Linux 5.0 |
| man page | clock_gettime(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 256, the syscall number |
r26 | clockid_t which_clock |
r25 | struct old_timespec32 *tp |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 228
- x86 265
- arm64 113
- arm 263
- riscv64 113
- x32 1073742052
- loongarch64 113
- ppc64 246
- ppc 246
- s390x 260
- mips64 5222
- mipsn32 6226
- mipso32 4263
- alpha 420
- arc 113
- csky 113
- hexagon 113
- m68k 260
- microblaze 265
- nios2 113
- openrisc 113
- sh 265
- sparc 257
- sparc64 257
- xtensa 245
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/clock_gettime