setup

Setup new instance of io_uring into provided Uring structure.

nothrow @nogc
int
setup
(
,
uint entries = 128
,
SetupFlags flags = SetupFlags.NONE
)

Parameters

uring
Type: Uring

Uring structure to be initialized (must not be already initialized)

entries
Type: uint

Number of entries to initialize uring with

flags
Type: SetupFlags

SetupFlags to use to initialize uring.

Return Value

Type: int

On succes it returns 0, -errno otherwise.

Meta