io_destroy on x64
destroy an asynchronous I/O context
sys_io_destroy(aio_context_t ctx)
| number | 207 (0xcf) |
|---|---|
| abi | common |
| kconfig | CONFIG_AIO |
| family | aio see the whole family on x64 |
| entry point | sys_io_destroy |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | io_destroy(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 207, the syscall number |
rdi | aio_context_t ctx |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 246
- arm64 1
- arm 244
- riscv64 1
- ia32 246
- x32 1073742031
- loongarch64 1
- ppc64 228
- ppc 228
- s390x 244
- mips64 5201
- mipsn32 6201
- mipso32 4242
- alpha 399
- arc 1
- blackfin 246, removed in 4.17
- cris 246, removed in 4.17
- csky 1
- frv 246, removed in 4.17
- hexagon 1
- ia64 1239, removed in 6.7
- m32r 246, removed in 4.17
- m68k 242
- metag 1, removed in 4.17
- microblaze 246
- mn10300 246, removed in 4.17
- nds32 1, removed in 5.18
- nios2 1
- openrisc 1
- parisc 216
- score 1, removed in 4.17
- sh 246
- sparc 269
- sparc64 269
- tilegx 1, removed in 4.17
- tilepro 1, removed in 4.17
- xtensa 240
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/io_destroy