[][src]Module iou::registrar

Types related to registration and registered resources.

The Registrar type can be used to register resources with the kernel that will be used with a particular IoUring instance. This can improve performance by avoiding the kernel from reallocating resources for each IO events performed against those resources.

When file descriptors and buffers are registered with the kernel, an iterator of the type-safe Registered wrapper is returned. This wrapper makes it easier to correctly use pre-registered resources. By passing a RegisteredFd or the correct type of registered buffer to an SQE's prep methods, the SQE will be properly prepared to use the pre-registered object.

Structs

Personality
Registered

An object registered with an io-uring instance through a Registrar.

Registrar

A Registrar creates ahead-of-time kernel references to files and user buffers.

Constants

PLACEHOLDER_FD

Traits

UringFd

A file descriptor that can be used to prepare SQEs.

UringReadBuf

A buffer that can be used to prepare read events.

UringWriteBuf

A buffer that can be used to prepare write events.

Type Definitions

RegisteredBuf
RegisteredBufMut
RegisteredBufRef
RegisteredFd

A member of the kernel's registered fileset.