io_uring_register

Register files or user buffers for asynchronous I/O.

The io_uring_register() system call registers user buffers or files for use in an io_uring(7) instance referenced by fd. Registering files or user buffers allows the kernel to take long term references to internal data structures or create long term mappings of application memory, greatly reducing per-I/O overhead.

version(linux) @nogc
int
io_uring_register
(
int fd
,,
const(void)* arg
,
uint nr_args
)

Parameters

fd
Type: int

the file descriptor returned by a call to io_uring_setup(2)

opcode

code of operation to execute on args

arg
Type: const(void)*

Args used by specified operation. See RegisterOpCode for usage details.

nr_args
Type: uint

number of provided arguments

Return Value

Type: int

On success, io_uring_register() returns 0. On error, -1 is returned, and errno is set accordingly.

See Also

`io_uring_register(2)

Meta