_load(D2sdi)
_load --
prepare to load a driver
Synopsis
See the
_load(D2)
manual page for
Synopsis, Arguments, Context, and Version Applicability
information.
Usage
For many HBA drivers,
the
_load( )
entry point routine merely calls the
drv_attach(D3)
function.
Additional initialization is coded in the
CFG_ADD subfunction to the
config(D2sdi)
entry point routine,
which executes for each configured device.
Applicable hardware
All
Differences between versions
For DDI versions prior to version 8,
_load( )
is called only for DLKMs,
not for statically-linked drivers.
For DDI 8 and later drivers,
the
_load( )
entry point is called
to initialize statically-linked drivers
as well as DLKMs.
For SDI drivers that use
DDI versions prior to version 8,
the HBA driver's
_load( )
routine should call the
sdi_intr_attach(D3sdi)
function
(or, for earlier SDI drivers
that do not support autoconfiguration, the
mod_drvattach(D3)
function)
to install the interrupt vectors,
with an argument of the address of
xxx_attach_info.
The HBA driver can then
enable HBA interrupts
and register the HBA with SDI.
References
_load(D2),
_unload(D2sdi),
``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