io_getevents on loongarch64
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 |
| kconfig | CONFIG_AIO |
| family | aio see the whole family on loongarch64 |
| entry point | sys_io_getevents |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| 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 syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 208
- x86 247
- arm64 4
- arm 245
- riscv64 4
- ia32 247
- x32 1073742032
- ppc64 229
- ppc 229
- s390x 245
- mips64 5202
- mipsn32 6202
- mipso32 4243
- alpha 400
- arc 4
- blackfin 247, removed in 4.17
- cris 247, removed in 4.17
- csky 4
- frv 247, removed in 4.17
- hexagon 4
- ia64 1240, removed in 6.7
- m32r 247, removed in 4.17
- m68k 243
- metag 4, removed in 4.17
- microblaze 247
- mn10300 247, removed in 4.17
- nds32 4, removed in 5.18
- nios2 4
- openrisc 4
- parisc 217
- score 4, removed in 4.17
- sh 247
- sparc 272
- sparc64 272
- tilegx 4, removed in 4.17
- tilepro 4, removed in 4.17
- xtensa 242
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/io_getevents