DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

mod_drvdetach(D3)


mod_drvdetach -- remove interrupts for a loadable device driver

Synopsis (Not in current DDI version)

   #include <sys/moddefs.h>
   #include <sys/ddi.h>
   

void mod_drvdetach(void *iip);

Description

mod_drvdetach is called from a loadable driver's _unload(D2) routine. It disables and removes interrupts for a driver being dynamically unloaded from 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_detach(D3) function rather than mod_drvattach( ).

References

_unload(D2), mod_drvattach(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