DEVICE_DETACH (9)
Leading comments
Copyright (c) 1998 Doug Rabson All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in...
NAME
DEVICE_DETACH - detach a deviceSYNOPSIS
In sys/param.h In sys/bus.h Ft int Fn DEVICE_DETACH device_t devDESCRIPTION
Detach 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.)