pub struct VirtqueueLayout {
    pub num_queues: usize,
    pub avail_offset: usize,
    pub used_offset: usize,
    pub req_offset: usize,
    pub end_offset: usize,
}
Expand description

A description how the memory passed for each virtqueue is split into individual regions.

  • The Virtqueue Descriptor Table starts from offset 0
  • The Virtqueue Available Ring starts at avail_offset
  • The Virtqueue Used Ring starts at used_offset
  • Driver-specific per request data that needs to be shared with the device (e.g. request headers or status bytes) start at req_offset

Fields

num_queues: usizeavail_offset: usizeused_offset: usizereq_offset: usizeend_offset: usize

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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.