SVR5
mod_drvattach(D3)
mod_drvattach --
install interrupts for a loadable device driver
Synopsis (Not in current DDI version)
#include <sys/moddefs.h>
#include <sys/ddi.h>
void mod_drvattach(void *iip);
Description
mod_drvattach is called
from a loadable driver's
_load(D2)
routine.
It installs and enables interrupts
for a driver being dynamically loaded into a running system.
Arguments
iip-
Pointer to the driver's prefixattach_info structure.
Return values
None
Usage
The prefixattach_info structure
is defined and initialized by the kernel configuration tools
at the time the driver is configured into the system.
The definition of the attach_info structure
is not included in the DDI and can change across releases.
It should be treated as a ``black box'' by the driver;
none of its fields may be referenced.
Context and synchronization
User or blockable
context.
Hardware applicability
All
Version applicability
ddi:
4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp
Differences between versions
Beginning with DDI 8, use the
cm_intr_attach(D3)
function rather than
mod_drvattach( ).
References
_load(D2),
drv_attach(D3),
mod_drvdetach(D3)
``Dynamically-loadable kernel modules (DLKM)'' in HDK Technical Reference.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005