syscall.sh / loongarch64 / timer_gettime
timer_gettime
arm/disarm and fetch state of POSIX per-process timer
sys_timer_gettime(timer_t timer_id, struct __kernel_itimerspec *setting)
| number | 108 (0x6c) |
|---|---|
| abi | 64 |
| entry point | sys_timer_gettime |
| since | Linux 5.19 |
| man page | timer_gettime(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 108, the syscall number |
a0 | timer_t timer_id |
a1 | struct __kernel_itimerspec *setting |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 224
- x86 261
- arm64 108
- arm 259
- riscv64 108
- x32 1073742048
- ppc64 242
- ppc 242
- s390x 256
- mips64 5218
- mipsn32 6222
- mipso32 4259
- alpha 416
- arc 108
- csky 108
- hexagon 108
- m68k 256
- microblaze 261
- nios2 108
- openrisc 108
- parisc 252
- sh 261
- sparc 263
- sparc64 263
- xtensa 251
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/timer_gettime