VirtQueue

final class ntoseye.VirtQueue

Subclass of BaseRecord.

One queue: the driver’s bookkeeping and, for a split ring, the ring.

property address: int

The virtqueue_split or virtqueue_packed.

property driver: DriverQueueState | None

What the driver keeps of a split queue.

property error: str | None

Why the queue or its ring could not be read.

property event_idx: bool

The device and driver use event indexes (see VirtioDriver).

property index: int

Its index in the device’s queue table.

property interrupt_due: bool

Whether an interrupt was due for the returned buffers (split).

property interrupts: Signal | None

When the driver wants interrupts.

property name: str | None

Its name where the virtio specification fixes it, such as rx 0 or request 2, when the device’s type is known (name_queues).

property notifications: Signal | None

When the device wants notifications.

property packed: PackedQueueState | None

The driver’s bookkeeping of a packed queue.

property packed_ring: PackedRing | None

A packed queue’s ring, read against the driver’s bookkeeping.

property progress: QueueProgress | None

Counters that only grow, to compare two looks with.

property ring: SplitRing | None

A split queue’s ring.

property role: Literal['device_fills', 'requests'] | None

device_fills for a queue whose buffers wait until the device has something (receive, events), requests for one whose buffers carry requests.

property size: int
property state: str

What the queue’s counts mean together, as !virtio says it.