register a layered I/O driver with SDI
sdi_layer_t sdi_driver_add(sdi_driver_desc_t *infop, int flag);
registers a stackable I/O driver with SDI.
This routine causes SDI to be aware of the driver,
the level the driver is logically at,
and the classes of devices the driver is interested in.
It also registers a
entry point routine for this driver.
Pointer to the driver's
Set to KM_SLEEP or KM_NOSLEEP to indicate
whether or not the function can block
if resources are not available
to register the layered I/O driver.
Upon successful completion,
returns a pointer to the handle that the
driver must use whenever referencing itself to SDI.
If any of the values contained in
the driver description structure are in error,
fails and a value of NULL is returned.
This function is typically called by the driver's
entry point routine
that will exist in the SDI I/O stack.
It makes SDI aware of the driver.
Once this function is called,
the driver can expect invocations of its
entry point from SDI,
notifying it of new devices of interest.
Thus, care must be taken that
the driver is indeed prepared for these invocations
before this function is called.
The structure pointed to by infop
must have been obtained from the
function and validated by the
Context and synchronizataion
If flag is set to KM_NOSLEEP,
non-blockable, initialization, or interrupt
If flag is set to KM_SLEEP,
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005