DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_deregister(D3sdi)


sdi_deregister -- de-register a Host Bus Adapter (HBA) with SDI

Synopsis

   #include <sys/sdi.h>
   

int sdi_deregister(HBA_IDATA_STRUCT *idata);

Description

sdi_deregister deregisters a controller instance associated with idata structure.

This routine removes all the devices connected to this controller from the equipped device table (EDT).

Arguments


idata
pointer to idata structure for the specific device being deregistered

Return values

sdi_deregister returns 0 on success and returns EINVAL on failure.

sdi_deregister fails if a device cannot be removed because the device is busy (currently opened) or the target driver does not support hot removal of a device.

Usage

sdi_deregister( ) is called by an HBA driver to de-register a controller instance in preparation for unloading either the HBA driver or the controller.

Context and synchronization

Blockable context.

Driver-defined basic locks, read/write locks, and sleep locks cannot be held across calls to this function.

Applicable hardware

All

Version applicability

sdi: 4 HBA drivers

References

sdi_register(D3sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005