DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_intr_attach(D3sdi)


sdi_intr_attach -- attach interrupts for a HBA device

Synopsis

   #include <sys/sdi.h>

void sdi_intr_attach(HBA_IDATA_STRUCT *idata, int cntls, void (*intr)(), int devflag);

Description

sdi_intr_attach attaches the interrupt intr for each hardware instance whose idata structure is marked active (for example, the active field of the idata structure is non-zero).

Arguments


idata
Pointer to array of idata structures (one for each controller controlled by the calling HBA driver)

cntls
Number of controllers. This should represent the size of the idata structure array.

intr
Pointer to interrupt routine to be attached.

devflag
The device driver's HBA device flag.

Return values

None

Usage

sdi_intr_attach is called by an HBA driver to attach interrupts (usually during initialization). The interrupts can be detached by calling the sdi_acfree(D3sdi) routine.

Context and synchronization

Blockable context.

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

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 2, 3, 4 HBA drivers that use DDI versions prior to version 8.

Differences between versions

SDI version 4 and later drivers use the standard DDI 8 interfaces to attach interrupts for each hardware instance.

References

config(D2sdi), cm_intr_attach(D3), sdi_acfree(D3sdi), _verify(D2)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005