de-register a layered device with SDI
boolean_t sdi_device_rm(rm_key_t *device_key, int flag);
deregisters a storage device with SDI.
When this routine is invoked,
SDI notifies any drivers
that have registered an interest in the device
that it is being removed from the stack.
At this point,
I/O requests to the device will no longer occur.
Set to KM_SLEEP or KM_NOSLEEP to indicate
whether the driver can block
to await the resources required to
deregister the layered device.
Failure can only occur if the device is still busy,
if device_key is not a valid resource manager key,
or if the KM_NOSLEEP flag is set
and there is inadequate memory available
to deregister the device.
This function is typically called
during the normal operation of a driver
when a device is to be removed from
the SDI I/O stack.
Once this function is called,
the driver can expect no further invocations
of the entry points it has specified
in the device's description structure from SDI.
The structure pointed to by the device_key argument
must have been obtained from
and processed by
Context and synchronization
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005