setup

Setup new instance of io_uring into provided Uring structure.

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

Parameters

uring Uring

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

entries uint

Number of entries to initialize uring with

flags SetupFlags

SetupFlags to use to initialize uring.

Return Value

Type: int

On succes it returns 0, -errno otherwise.

Meta