FreeBSD/sys/dev/twe/twe_freebsd.c
/********************************************************************************
 * Disconnect ourselves from the system.
 */
Disconnect ourselves from the system.
Disconnect ourselves from the system .
static int
twed_detach(device_t dev)
{
    struct twed_softc *sc = (struct twed_softc *)device_get_softc(dev);
    debug_called(4);
    if (sc->twed_disk->d_flags & DISKFLAG_OPEN)
	return(EBUSY);
    disk_destroy(sc->twed_disk);
    return(0);
}
static int twed_detach ( device_t dev ) { struct twed_softc * sc = ( struct twed_softc * ) device_get_softc ( dev ) ; debug_called ( 4 ) ; if ( sc -> twed_disk -> d_flags & DISKFLAG_OPEN ) return ( EBUSY ) ; disk_destroy ( sc -> twed_disk ) ; return ( 0 ) ; }
Disconnect ourselves from the system.
Disconnect ourselves from the system .