Struct vmm_vhost::backend::VringConfigData
source · pub struct VringConfigData {
pub queue_size: u16,
pub flags: u32,
pub desc_table_addr: u64,
pub used_ring_addr: u64,
pub avail_ring_addr: u64,
pub log_addr: Option<u64>,
}
Expand description
Vring configuration data.
Fields§
§queue_size: u16
Actual queue size negotiated by the driver.
flags: u32
Bitmask of vring flags.
desc_table_addr: u64
Descriptor table address.
used_ring_addr: u64
Used ring buffer address.
avail_ring_addr: u64
Available ring buffer address.
log_addr: Option<u64>
Optional address for logging.
Implementations§
source§impl VringConfigData
impl VringConfigData
sourcepub fn is_log_addr_valid(&self) -> bool
pub fn is_log_addr_valid(&self) -> bool
Check whether the log (flag, address) pair is valid.
sourcepub fn get_log_addr(&self) -> u64
pub fn get_log_addr(&self) -> u64
Get the log address, default to zero if not available.
Auto Trait Implementations§
impl RefUnwindSafe for VringConfigData
impl Send for VringConfigData
impl Sync for VringConfigData
impl Unpin for VringConfigData
impl UnwindSafe for VringConfigData
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