Contents

queue(at:)

Returns Virtio queue at the specified index that belongs to this device.

Declaration

func queue(at index: UInt16) -> VZVirtioQueue?

Parameters

Return Value

The VZVirtioQueue object at the specified index, or nil if the index is invalid or the guest driver has disabled the queue.

Discussion

The framework sets up the virtqueues (Virtio queues) when the guest driver sets DRIVER_OK; this call returns a valid result only after the framework calls customVirtioDeviceDidAcceptDriverOk(_:).