DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_acfree(D3sdi)


sdi_acfree -- free idata memory and detach interrupts

Synopsis

   #include <sys/sdi.h>

void sdi_acfree(HBA_IDATA_STRUCT *idata, int cntls);

Description

The sdi_acfree( ) function frees memory associated with the specified idata structure array. The idata structure array should have been initially allocated with the sdi_hba_autoconf(D3sdi) function. sdi_acfree( ) also detaches interrupts associated with any of the idata array's structures.

Arguments


idata
Pointer to the idata structure array allocated by the sdi_hba_autoconf(D3sdi) function.

cntls
number of controllers associated with driver This should represent the size of the idata structure array.

Return values

None

Usage

sdi_acfree( ) is called when a target device driver is being unloaded to free memory and detach interrupts.

Context and synchronization

Non-blockable context.

Synchronization constraints

Does not sleep.

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

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: sdi: 2, 3 HBA drivers using ddi: 7, 7mp.

References

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