DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_driver_desc(D4sdi)


sdi_driver_desc -- SDI layered driver description

Syntax

   #include <sys/types.h>
   #include <sys/sdi.h>
   #include <sys/ddi.h>
   

Description

The sdi_driver_desc structure provides information about an SDI HBA or target driver that is accessed by a layered driver.

Structure definition

The members of the sdi_driver_desc structure that can be used by client drivers are:
   char	sdd_modname[ NAMESZ ];
   int 	sdd_precedence;
   struct	dev_cfg *sdd_dev_cfg;
   uint_t	sdd_dev_cfg_size;
   int 	(*sdd_config_entry)();
   ulong_t sdd_minors_per;

Structure members

The members are defined as:

sdd_modname[ NAMESZ ]
The modname of the driver in question. This is obtained from the driver's Space.c file using the MODNAME value.

sdd_precedence
The relative precedence order of this driver to the rest of the layered drivers in the SDI I/O stack. Valid values are:

SDI_STACK_BASE
Used for HBA and target drivers.

SDI_STACK_ALPHA
Used for the deflection driver.

SDI_STACK_BETA
Used for the DARDAC driver.

SDI_STACK_GAMMA
Used for the MPIO driver.

SDI_STACK_DELTA
Used for the partition driver.

SDI_STACK_VTOC
Highest precedence, used for the VTOC driver.

sdd_dev_cfg
Pointer to a dev_cfg structure as defined in the sdi_comm.h header file. The values in that structure are initialized to define the classes of devices for which this driver receives CFG_ADD events; see config(D2sdi).

sdd_dev_cfg_size
The number of entries in the dev_cfg structure to which the sdd_dev_cfg member points.

sdd_config_entry
The name of the config(D2sdi) entry point for the layered driver.

sdd_minors_per
The number of channels that the driver uses for each device. This value is 1 for most drivers in the I/O stack other than the driver at the VTOC level.

Usage

The sdi_driver_desc structure is pointed to by the ow_sddp member of the owner(D4sdi) structure.

Hardware applicability

All

Version applicability

sdi: 4 layered drivers.

Future directions

Additional values for the sdi_precedence member may be defined at a later date, and the relationship between existing values is not guaranteed to be preserved between operating system releases.

References


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