syscall.sh / riscv64 / io_getevents
io_getevents
read asynchronous I/O events from the completion queue
sys_io_getevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct __kernel_timespec *timeout)
| number | 4 (0x4) |
|---|---|
| abi | 64 |
| entry point | sys_io_getevents |
| since | Linux 4.15 |
| man page | io_getevents(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 4, the syscall number |
a0 | aio_context_t ctx_id |
a1 | long min_nr |
a2 | long nr |
a3 | struct io_event *events |
a4 | struct __kernel_timespec *timeout |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 208
- x86 247
- arm64 4
- arm 245
- x32 1073742032
- loongarch64 4
- ppc64 229
- ppc 229
- s390x 245
- mips64 5202
- mipsn32 6202
- mipso32 4243
- alpha 400
- arc 4
- csky 4
- hexagon 4
- m68k 243
- microblaze 247
- nios2 4
- openrisc 4
- parisc 217
- sh 247
- sparc 272
- sparc64 272
- xtensa 242
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/io_getevents