Module queue

Source
Expand description

Virtqueue management wrappers.

This is a slightly opinionated wrapper that presents the underlying Device and Driver rings as a single ‘virtqueue’ where descriptor chains can be retrieved, walked or iterated, and then returned.

The primary opinionated decision taken by this wrapper is that a descriptor chain is considered a formal object that can automatically returns itself to the queue when dropped. This return is then required to have a mechanism to potentially signal the guest driver, via the DriverNotify trait.

Structs§

Desc
Reference to descriptor data.
DescChain
Represents a chain of descriptors in the available ring.
DescChainIter
Iterates over a DescChain.
Queue
Representation of a virtqueue.
QueueMemory
Describes the memory ranges for a queue.

Enums§

DescError
Errors that occur when walking descriptor chains via DescChainIter.
DescType
Descriptor type

Traits§

DriverNotify
Informs device that driver needs a notification.