io_uring_register

fnint io_uring_register(int fd, uint opcode, const void * arg, uint nr_args) @system

Register files or buffers with the io_uring instance.

Pre-registering resources improves performance by avoiding repeated kernel lookups on each I/O operation.

Parameters

fdio_uring file descriptor from io_uring_setup.
opcodeRegistration operation code (IORING_REGISTER_*).
argPointer to operation-specific argument.
nr_argsNumber of arguments.

Returns

0 on success, or -1 on error (check errno).

Throws

Does not throw. Returns -1 on error and sets errno.