DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_doconfig(D3sdi)


sdi_doconfig -- allow a target driver to find devices in the Equipped Device Table (EDT)

Synopsis

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

struct owner * sdi_doconfig(struct dev_cfg dev_cfg[], int dev_cfg_size, char *drvrname, struct drv_majors *drv_maj, void (*rinit()))

Description

sdi_doconfig( ) searches the Equipped Device Table (EDT) looking for devices of the type controlled by the calling target driver.

The rinit argument controls how sdi_doconfig manipulates the sdi_rinits table entry for the associated device. If the SDI_REMOVE flag is set in the dev_cfg argument, the routine sets the entry to NULL. If the SDI_REMOVE flag is clear, the associated sdi_rinits entry is set to the rinit argument.

Arguments


dev_cfg
the target driver's device configuration table

dev_cfg_size
byte size of the target driver's device configuration table

drvrname
target driver's name

drv_maj
driver block and character major numbers

rinit
target driver's rinit(D2sdi) entry point routine.

Return values

The return value for sdi_doconfig is a pointer to a linked list of initialized owner structures associated with the target driver's devices. The owner structures are linked together by their target_link members. If no matching devices is found in the EDT, a NULL pointer is returned.

Usage

sdi_doconfig is called by the target driver's init(D2sdi) and rinit(D2sdi) rinit() routines to claim devices of the appropriate type found in the EDT.

Context and synchronization

Blockable context.

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 1, 2, 3, 4 target drivers.

References

owner(D4sdi), rinit(D2sdi), sdi_clrconfig(D3sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005