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

drv_detach(D3)


drv_detach -- deregister a driver registered by drv_attach(D3)

Synopsis

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

void drv_detach(const drvinfo_t *infop);

Description

drv_detach( ) deregisters a driver that was previously registered with the drv_attach(D3) function.

Arguments


infop
Pointer to the driver's drvinfo(D4) structure, as passed to a previous call to the drv_attach(D3) function

Return values

None.

Usage

The call to drv_detach( ) causes a call to the CFG_REMOVE subfunction of the config(D2) entry point routine. It may also call the CFG_SUSPEND subfunction. Code the CFG_REMOVE subfunction to perform all activities that should happen during system shutdown or, for a hot plug driver, when the device is removed from the system. The driver should be coded to work correctly whether or not the CFG_SUSPEND subfunction is also called.

Context and synchronization

User or blockable context.

Hardware applicability

All

Version applicability

ddi: 8, 8mp

References

config(D2), drv_attach(D3), drvinfo(D4)

``Hotplug devices'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005