Struct project4::virtio::VirtIoMmioHeader
source · #[repr(C)]pub struct VirtIoMmioHeader {
pub status: u32,
pub queue_size: u32,
pub queue_addr_hi: u32,
pub queue_addr_lo: u32,
pub queue_head: u32,
pub queue_tail: u32,
}Expand description
The header of the virtio device.
Fields§
§status: u32Status of the device
queue_size: u32Size of the virtqueue
queue_addr_hi: u32Upper 32bit of the virtqueue physical address
queue_addr_lo: u32Lower 32bit of the virtqueue physical address
queue_head: u32Queue Head
Driver update the tail of the queue. Device must not update the field.
queue_tail: u32Queue tail
Device update the tail of the queue. Driver must not update the field.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VirtIoMmioHeader
impl Send for VirtIoMmioHeader
impl Sync for VirtIoMmioHeader
impl Unpin for VirtIoMmioHeader
impl UnwindSafe for VirtIoMmioHeader
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more