Struct vmm_vhost::message::QueueRegionPacked
source · #[repr(C, packed(1))]pub struct QueueRegionPacked {
pub features: u64,
pub version: u16,
pub desc_num: u16,
pub free_head: u16,
pub old_free_head: u16,
pub used_idx: u16,
pub old_used_idx: u16,
pub used_wrap_counter: u8,
pub old_used_wrap_counter: u8,
padding: [u8; 7],
pub desc: u64,
}
Expand description
Inflight I/O queue region for packed virtqueues
Fields§
§features: u64
Features flags of this region
version: u16
version of this region
desc_num: u16
size of descriptor state array
free_head: u16
head of free DescStatePacked entry list
old_free_head: u16
old head of free DescStatePacked entry list
used_idx: u16
used idx of descriptor ring
old_used_idx: u16
old used idx of descriptor ring
used_wrap_counter: u8
device ring wrap counter
old_used_wrap_counter: u8
old device ring wrap counter
padding: [u8; 7]
Padding
desc: u64
Pointer to array tracking state of each descriptor from descriptor ring
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for QueueRegionPacked
impl Send for QueueRegionPacked
impl Sync for QueueRegionPacked
impl Unpin for QueueRegionPacked
impl UnwindSafe for QueueRegionPacked
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