FreeBSD Device Driver Writer's Guide : Kernel Support : Data Structures : struct kern_devconf Structure
Previous: Data Structures
Next: struct proc Structure

5.1.1. struct kern_devconf Structure

This structure contains some information about the state of the device and driver. It is defined in /usr/src/sys/sys/devconf.h as:


struct devconf {
        char dc_name[MAXDEVNAME];       /* name */
        char dc_descr[MAXDEVDESCR];     /* description */
        int dc_unit;                    /* unit number */
        int dc_number;                  /* unique id */
        char dc_pname[MAXDEVNAME];      /* name of the parent device */
        int dc_punit;                   /* unit number of the parent */
        int dc_pnumber;                 /* unique id of the parent */
        struct machdep_devconf dc_md;   /* machine-dependent stuff */
        enum dc_state dc_state;         /* state of the device (see above) */
        enum dc_class dc_class;         /* type of device (see above) */
        size_t dc_datalen;              /* length of data */
        char dc_data[1];                /* variable-length data */
};


FreeBSD Device Driver Writer's Guide : Kernel Support : Data Structures : struct kern_devconf Structure
Previous: Data Structures
Next: struct proc Structure
freebsd-questions@freebsd.org