Virtual character device configuration
#include <qvm/cdev.h>
enum { CDEV_OPT_HOSTDEV_IDX, CDEV_OPT_DELAYED_IDX, CDEV_OPT_BATCH_IDX, CDEV_OPT_NUM_OPTS };
The index of the hostdev option in the array referenced by the vdev_factory structure's option_list member (see the QHS 2.0 User's Guide for information about paths to host character devices).
The index of the delayed option in the array referenced by the vdev_factory structure's option_list member. This option specifies the number of seconds to wait for the host character device to appear.
The index of the batch option in the array referenced by the vdev_factory structure's option_list member.
The index to the point at which you can start numbering your character vdev options.
The cdev_control() code expects the options to be at these indices in the vdev factory.