pub struct VirtioBlkConfig {
pub queue_size: u16,
pub desc_phys: u64,
pub avail_phys: u64,
pub used_phys: u64,
pub headers_phys: u64,
pub status_phys: u64,
pub headers_cpu: u64,
pub status_cpu: u64,
pub notify_addr: u64,
pub transport_type: u8,
}Expand description
VirtIO-blk driver configuration.
Fields§
§queue_size: u16Queue size (number of descriptors)
desc_phys: u64Physical address of descriptor table
avail_phys: u64Physical address of available ring
used_phys: u64Physical address of used ring
headers_phys: u64Physical address of request headers (one per descriptor/3)
status_phys: u64Physical address of status bytes (one per descriptor/3)
headers_cpu: u64CPU pointer to headers
status_cpu: u64CPU pointer to status bytes
notify_addr: u64Physical address for notify MMIO (legacy) or computed from transport (PCI Modern)
transport_type: u8Transport type: 0=MMIO, 1=PCI Modern
Trait Implementations§
Source§impl Clone for VirtioBlkConfig
impl Clone for VirtioBlkConfig
Source§fn clone(&self) -> VirtioBlkConfig
fn clone(&self) -> VirtioBlkConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VirtioBlkConfig
impl RefUnwindSafe for VirtioBlkConfig
impl Send for VirtioBlkConfig
impl Sync for VirtioBlkConfig
impl Unpin for VirtioBlkConfig
impl UnwindSafe for VirtioBlkConfig
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