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 (see vio_version).
vdesc
A pointer to an object with a description of the vdev (see vio_description).
vsp
A pointer to the state structure for the vdev (see vio_state).

Description:

This function initializes the vdev's state. Use this function during startup, but only after your VDEV_CTRL_OPTIONS_END callback.

Page updated: