syscall.sh / riscv64 / timerfd_gettime
timerfd_gettime
timers that notify via file descriptors
sys_timerfd_gettime(int ufd, struct __kernel_itimerspec *otmr)
| number | 87 (0x57) |
|---|---|
| abi | 64 |
| entry point | sys_timerfd_gettime |
| since | Linux 4.15 |
| man page | timerfd_gettime(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 87, the syscall number |
a0 | int ufd |
a1 | struct __kernel_itimerspec *otmr |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 287
- x86 326
- arm64 87
- arm 354
- x32 1073742111
- loongarch64 87
- ppc64 312
- ppc 312
- s390x 321
- mips64 5281
- mipsn32 6285
- mipso32 4322
- alpha 483
- arc 87
- csky 87
- hexagon 87
- m68k 322
- microblaze 327
- nios2 87
- openrisc 87
- parisc 308
- sh 326
- sparc 316
- sparc64 316
- xtensa 314
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/timerfd_gettime