timerfd_create on riscv64
timers that notify via file descriptors
sys_timerfd_create(int clockid, int flags)
| number | 85 (0x55) |
|---|---|
| abi | common |
| kconfig | CONFIG_TIMERFD |
| entry point | sys_timerfd_create |
| since | Linux 4.15 or earlier (4.15 is the first release scanned for riscv64) |
| man page | timerfd_create(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 85, the syscall number |
a0 | int clockid |
a1 | int flags |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 283
- x86 322
- arm64 85
- arm 350
- ia32 322
- x32 1073742107
- loongarch64 85
- ppc64 306
- ppc 306
- s390x 319
- mips64 5280
- mipsn32 6284
- mipso32 4321
- alpha 481
- arc 85
- blackfin 349, removed in 4.17
- cris 322, removed in 4.17
- csky 85
- frv 322, removed in 4.17
- hexagon 85
- ia64 1310, removed in 6.7
- m68k 318
- metag 85, removed in 4.17
- microblaze 322
- mn10300 323, removed in 4.17
- nds32 85, removed in 5.18
- nios2 85
- openrisc 85
- parisc 306
- score 85, removed in 4.17
- sh 322
- sparc 312
- sparc64 312
- tilegx 85, removed in 4.17
- tilepro 85, removed in 4.17
- xtensa 312
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/timerfd_create