vio_init_queue()
Initialize one 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 being initialized.
- max_size
- The maximum number of descriptors the device allows in the queue.
Description:
This function initializes only the specified virtqueue in the device. You can use this function during startup, but only after your VDEV_CTRL_OPTIONS_END callback.
Returns:
EOK if successful; otherwise errno.
Page updated:
