syscall.sh / sh / timer_gettime64
timer_gettime64
arm/disarm and fetch state of POSIX per-process timer
sys_timer_gettime(timer_t timer_id, struct __kernel_itimerspec *setting)
| number | 408 (0x198) |
|---|---|
| abi | common |
| entry point | sys_timer_gettime |
| since | Linux 5.1 |
| man page | timer_gettime(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 408, the syscall number |
r4 | timer_t timer_id |
r5 | struct __kernel_itimerspec *setting |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 408
- arm 408
- ppc 408
- mipsn32 6408
- mipso32 4408
- arc 408
- csky 408
- hexagon 408
- m68k 408
- microblaze 408
- nios2 408
- openrisc 408
- parisc 408
- sparc 408
- xtensa 408
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/timer_gettime64