SYNOPSISIn sys/param.h In sys/bus.h Ft int Fn DEVICE_DETACH device_t dev
DESCRIPTIONDetach a device. This can be called if the user is replacing the driver software or if a device is about to be physically removed from the system (e.g. for pccard(4) devices).
The method should deallocate any system resources allocated during the DEVICE_ATTACH9 method and reset the hardware to a sane state (i.e., disable interrupts etc.)
RETURN VALUESZero is returned on success, otherwise an appropriate error is returned.
AUTHORSThis manual page was written by An Doug Rabson .