#[repr(C)]
pub struct VirtIOHeader { /* private fields */ }
Available on crate feature virtio only.
Expand description

MMIO Device Legacy Register Interface.

Ref: 4.2.4 Legacy interface

Implementations

Verify a valid header.

Get the device type.

Get the vendor ID.

Begin initializing the device.

Ref: virtio 3.1.1 Device Initialization

Finish initializing the device.

Set queue.

Get guest physical page number of the virtual queue.

Whether the queue is in used.

Get the max size of queue.

Notify device.

Acknowledge interrupt and return true if success.

Get the pointer to config space (at offset 0x100)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Casts the value.

Casts the value.

Casts the value.

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.

Casts the value.

Casts the value.