CDEV_OPT_*

Virtual character device configuration

Synopsis:

#include <qvm/cdev.h>
enum {
    CDEV_OPT_HOSTDEV_IDX,
    CDEV_OPT_DELAYED_IDX,
    CDEV_OPT_BATCH_IDX,
    CDEV_OPT_NUM_OPTS
};

Data:

CDEV_OPT_HOSTDEV_IDX

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).

CDEV_OPT_DELAYED_IDX

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.

CDEV_OPT_BATCH_IDX

The index of the batch option in the array referenced by the vdev_factory structure's option_list member.

CDEV_OPT_NUM_OPTS

The index to the point at which you can start numbering your character vdev options.

Library:

Provided by qvm; no external library is required.

Description:

The cdev_control() code expects the options to be at these indices in the vdev factory.