register a layered device with SDI
boolean_t sdi_device_add(sdi_device_t *infop, int flag);
registers a storage device with SDI.
After this routine is invoked,
SDI is free to advertise this device
to the rest of the SDI I/O stack.
At that point, I/O requests to the device can occur.
Pointer to the device's description structure,
Set to KM_SLEEP or KM_NOSLEEP to indicate
whether the allocation can block.
always returns B_TRUE.
This function is typically called during
the normal operation of a driver
as it becomes aware of new devices
that it wishes to advertise to SDI.
This is usually in the CFG_ADD subfunction
entry point routine.
Once this function is called,
the driver can expect invocations of the
entry points it has specified
in the device's description structure from SDI.
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 with the
function and processed by the
Context and synchronization
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