timerfd_gettime on loongarch64
timers that notify via file descriptors
sys_timerfd_gettime(int ufd, struct __kernel_itimerspec *otmr)
| number | 87 (0x57) |
|---|---|
| abi | 64 |
| kconfig | CONFIG_TIMERFD |
| entry point | sys_timerfd_gettime |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| 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 syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 287
- x86 326
- arm64 87
- arm 354
- riscv64 87
- ia32 326
- x32 1073742111
- ppc64 312
- ppc 312
- s390x 321
- mips64 5281
- mipsn32 6285
- mipso32 4322
- alpha 483
- arc 87
- blackfin 359, removed in 4.17
- cris 326, removed in 4.17
- csky 87
- frv 326, removed in 4.17
- hexagon 87
- ia64 1312, removed in 6.7
- m68k 322
- metag 87, removed in 4.17
- microblaze 327
- mn10300 327, removed in 4.17
- nds32 87, removed in 5.18
- nios2 87
- openrisc 87
- parisc 308
- score 87, removed in 4.17
- sh 326
- sparc 316
- sparc64 316
- tilegx 87, removed in 4.17
- tilepro 87, removed in 4.17
- xtensa 314
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/timerfd_gettime