devio(4)
NAME
devio − device interface
SYNTAX
#include <sys/ioctl.h>
#include <sys/devio.h>
DESCRIPTION
The file < sys/devio.h > contains the needed structure and definitions to use the DEVIOCGET ioctl request. The basic structure used by this request is shown below:
/* Structure for DEVIOCGET ioctl - device get status command */
struct devget {
short category; /* Category */
short bus; /* Bus */
char interface[DEV_SIZE]; /* Interface (string) */
char device[DEV_SIZE]; /* Device (string) */
short adpt_num; /* Adapter number */
short nexus_num; /* Nexus or node on adapter # */
short bus_num; /* Bus number */
short ctlr_num; /* Controller number */
short rctlr_num; /* Remote controller number */
short slave_num; /* Plug or line number */
char dev_name[DEV_SIZE]; /* ULTRIX device mnemonic */
short unit_num; /* ULTRIX device unit number */
unsigned soft_count; /* Driver soft error count */
unsigned hard_count; /* Driver hard error count */
long stat; /* Generic status mask */
long category_stat; /* Category specific mask */
};
Special Files