Structs§
- Buf
- A read-only buffer. Can be cloned, but cannot be written to.
- BufMut
- A mutable buffer. Cannot be cloned, but can be written to
Enums§
Constants§
- BUF_
SIZE - The size of a buffer, in bytes (4 KiB)
Traits§
- IoBuf
Mut - The IoBufMut trait is implemented by buffer types that can be passed to io-uring operations.
Functions§
- initialize_
allocator - Initialize the allocator. Must be called before any other allocation function.
- initialize_
allocator_ with_ num_ bufs - Initializes the allocator with the given number of buffers
- is_
allocator_ initialized - num_
free - Returns the number of free buffers in the pool