sdi_doconfig(D3I) sdi_doconfig(D3I)
NAME
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()))
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() function.
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.
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 elements. If no matching
devices were found in the EDT, a NULL pointer is returned.
Copyright 1994 Novell, Inc. Page 1
sdi_doconfig(D3I) sdi_doconfig(D3I)
USAGE
sdi_doconfig is called by the target driver's init() and
rinit() routines to claim devices of the appropriate type
found in the EDT.
Level
Base only.
REFERENCES
owner(D4I), rinit(D2I), sdi_clrconfig(D3I)
NOTICES
Applicability
sdi: 1, 2
Copyright 1994 Novell, Inc. Page 2