vio_init()

Initialize the vdev's state

Synopsis:

#include <qvm/vio.h>
void vio_init(vdev_t *vdp,
              enum vio_version const ver,
              const struct vio_description *vdesc,
              struct vio_state *vsp)

Arguments:

vdp
A pointer to a vdev structure.
ver
The version of the VirtIO standard this implementation is using.
vdesc
A pointer to a description of the vdev.
vsp
A pointer to the vdev's state structure for the vdev referenced by vdp.

Library:

Provided by qvm; no external library is required.

Description:

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