Uring.registerBuffers

Register single buffer to be mapped into the kernel for faster buffered operations.

To use the buffers, the application must specify the fixed variants for of operations, READ_FIXED or WRITE_FIXED in the SubmissionEntry also with used buf_index set in entry extra data.

An application can increase or decrease the size or number of registered buffers by first unregistering the existing buffers, and then issuing a new call to io_uring_register() with the new buffers.

struct Uring
nothrow @nogc
int
registerBuffers
(
T
)
if (
is(T == ubyte[]) ||
is(T == ubyte[][])
)

Return Value

Type: int

On success, returns 0. On error, -errno is returned.

Meta