sdi_intr_attach(D3I) sdi_intr_attach(D3I)
NAME
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);
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.
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).
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(D3I) routine.
Level
Initialization or Base.
Synchronization Constraints
May sleep.
Driver-defined basic locks and read/write locks may not be
held across calls to this function. Driver-defined sleep
locks may be held across calls to this function.
REFERENCES
cm_intr_attach(D3), sdi_acfree(D3I), _verify(D2)
Copyright 1994 Novell, Inc. Page 1
sdi_intr_attach(D3I) sdi_intr_attach(D3I)
NOTICES
Applicability
sdi: 2
Copyright 1994 Novell, Inc. Page 2