Definitions in cdev.h
Preprocessor macro definitions for the cdev.h header file
Definitions:
#include <qvm/cdev.h>
#define CDEV_INPUT_AVAILABLE_PULSE_CODE 0
The device has input available
#define CDEV_OUTPUT_AVAILABLE_PULSE_CODE 1
The device is available for output
#define CDEV_NUM_PULSE_CODES 2
The number of the next pulse code you can use for your character vdev. For example, MY_EXTRA_PULSE (CDEV_NUM_PULSE_CODES).
#define CDEV_OPT_HOSTDEV_IDX ((vdev_ctrl_options_t)0U)
Index of the hostdev option in the CDEV_OPTIONS options array
#define CDEV_OPT_DELAYED_IDX ((vdev_ctrl_options_t)1U)
Index of the delayed option in the CDEV_OPTIONS options array
#define CDEV_OPT_BATCH_IDX ((vdev_ctrl_options_t)2U)
Index of the batch option in the CDEV_OPTIONS options array
#define CDEV_OPT_NUM_OPTS ((vdev_ctrl_options_t)3U)
Number of startup options for virtual character devices
#define CDEV_OPTIONS \
[CDEV_OPT_HOSTDEV_IDX] = "hostdev", \
[CDEV_OPT_DELAYED_IDX] = "delayed", \
[CDEV_OPT_BATCH_IDX] = "batch"
Macro for combining options to be used as the first entries in a character device's startup options array
Page updated:
