FreeBSD/sys/dev/vxge/vxge.c
/*
 * vxge_detach
 * Detaches driver from the Kernel subsystem
 */
vxge_detach
Detaches driver from the Kernel subsystem
vxge_detach Detaches driver from the Kernel subsystem
int
vxge_detach(device_t ndev)
{
	vxge_dev_t *vdev;
	vdev = (vxge_dev_t *) device_get_softc(ndev);
	if (vdev->is_active) {
		vdev->is_active = FALSE;
		vxge_stop(vdev);
		vxge_free_resources(ndev, VXGE_FREE_ALL);
	}
	return (0);
}
int vxge_detach ( device_t ndev ) { vxge_dev_t * vdev ; vdev = ( vxge_dev_t * ) device_get_softc ( ndev ) ; if ( vdev -> is_active ) { vdev -> is_active = FALSE ; vxge_stop ( vdev ) ; vxge_free_resources ( ndev , VXGE_FREE_ALL ) ; } return ( 0 ) ; }
vxge_detach
 Detaches driver from the Kernel subsystem
vxge_detach Detaches driver from the Kernel subsystem