vio_init_queue()

Updated: October 28, 2024

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.

Description:

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

Returns:

EOK if successful; otherwise errno.

  翻译: