vdev_s
Virtual device (vdev) information
Synopsis:
#include <qvm/vdev-core.h>struct vdev_s {
void* v_device;
const struct vdev_factory* v_factory;
struct qvm_state_block v_block;
guest_intr_t v_intr;
pthread_mutex_t v_mtx;
struct qvm_sched_info v_sched;
};Data:
- void* v_device
- A pointer to device-specific state information.
- const struct vdev_factory* v_factory
- A pointer to the device factory for the vdev.
- struct qvm_state_block v_block
- The location of the vdev in the guest system.
- guest_intr_t v_intr
- The guest interrupt the vdev uses to request service.
- pthread_mutex_t v_mtx
- A mutex for the vdev's own use. Use the vdev_factory_flags factory_flags field to intitialize this member to VFF_MUTEX and, optionally, VFF_MUTEX_RECURSIVE.
- struct qvm_sched_info v_sched
- Scheduler information for the vdev threads.
Description:
The vdev_s structure stores vdev information and provides the definition for the vdev_t data type, which is passed into vdev configuration functions.
Page updated:
