vio_init_queue()

Initialize a single virtqueue in the device

Synopsis:

#include <qvm/vio.h>
int vio_init_queue(struct vio_state *vsp,
                   unsigned qidx,
                   unsigned max_size)

Arguments:

vsp
A pointer to the vdev's state structure.
qidx
The index number of the queue to be initialized.
max_size
The maximum number of descriptors the device allows in the queue.

Library:

Provided by qvm; no external library is required.

Description:

Use this function during startup, but only after your VDEV_CTRL_OPTIONS_END callback.

Returns:

EOK if successful; otherwise errno.