DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

drv_majors(D4sdi)


drv_majors -- target driver's device numbering structure

Synopsis

   #include <sys/sdi_edt.h>
   #include <sys/ddi.h>

Description

The drv_majors structure is used to specify the device nodes for a specific device. This structure is part of the owner(D4sdi) structure; its members must be initialized by the target driver's rinit(D2sdi) routine.

Structure definition

The drv_majors structure, defined as struct drv_majors, contains the following structure members:
   major_t b_maj;          /* block major number */
   major_t c_maj;          /* character major number */
   ulong_t minors_per;     /* number of minors per device instance */
   minor_t first_minor;    /* the first minor for this device */

Structure members


b_maj
the block major number of the target driver for this device

c_maj
the character major number of the target driver for this device

minors_per
the number of minor numbers reserved for this device

first_minor
the first minor number for this device

For DDI 8 drivers, these values are internally translated to appropriate channel and idata values. See ``Major and minor numbers'' in HDK Technical Reference.

Usage

The drv_majors structure must not be allocated directly by a driver.

Applicable hardware

All.

Version applicability

sdi: 2, 3, 4

References

owner(D4sdi), rinit(D2sdi), scsi_xedt(D4sdi), sdi_edt(D4sdi)

``Major and minor numbers'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005