io_uring_register on x64
register files or user buffers for asynchronous I/O
sys_io_uring_register(unsigned int fd, unsigned int op, void *arg, unsigned int nr_args)
| number | 427 (0x1ab) |
|---|---|
| abi | common |
| kconfig | CONFIG_IO_URING |
| family | io_uring see the whole family on x64 |
| entry point | sys_io_uring_register |
| since | Linux 5.1 |
| man page | io_uring_register(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 427, the syscall number |
rdi | unsigned int fd |
rsi | unsigned int op |
rdx | void *arg |
r10 | unsigned int nr_args |
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 427
- arm64 427
- arm 427
- riscv64 427
- ia32 427
- x32 1073742251
- loongarch64 427
- ppc64 427
- ppc 427
- s390x 427
- mips64 5427
- mipsn32 6427
- mipso32 4427
- alpha 537
- arc 427
- csky 427
- hexagon 427
- ia64 1451, removed in 6.7
- m68k 427
- microblaze 427
- nds32 427, removed in 5.18
- nios2 427
- openrisc 427
- parisc 427
- sh 427
- sparc 427
- sparc64 427
- xtensa 427
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/io_uring_register