pub struct RegisteredBufferConfig {
pub count: u32,
pub size: u32,
}Expand description
Configuration for pre-registered kernel buffer pools.
When enabled, the ring allocates count buffers of size bytes and
registers them with the kernel via IORING_REGISTER_BUFFERS. Subsequent
read and write operations using these buffers bypass per-I/O page pinning,
yielding 2-3× throughput on high-IOPS workloads.
Fields§
§count: u32Number of buffers to pre-allocate and register.
size: u32Size of each buffer in bytes.
Trait Implementations§
Source§impl Clone for RegisteredBufferConfig
impl Clone for RegisteredBufferConfig
Source§fn clone(&self) -> RegisteredBufferConfig
fn clone(&self) -> RegisteredBufferConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegisteredBufferConfig
Source§impl Debug for RegisteredBufferConfig
impl Debug for RegisteredBufferConfig
impl Eq for RegisteredBufferConfig
Source§impl PartialEq for RegisteredBufferConfig
impl PartialEq for RegisteredBufferConfig
impl StructuralPartialEq for RegisteredBufferConfig
Auto Trait Implementations§
impl Freeze for RegisteredBufferConfig
impl RefUnwindSafe for RegisteredBufferConfig
impl Send for RegisteredBufferConfig
impl Sync for RegisteredBufferConfig
impl Unpin for RegisteredBufferConfig
impl UnsafeUnpin for RegisteredBufferConfig
impl UnwindSafe for RegisteredBufferConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more