FreeBSD/sys/dev/bxe/bxe.c
/*
 * Device shutdown function.
 *
 * Stops and resets the controller.
 *
 * Returns:
 *   Nothing
 */
Device shutdown function.
Stops and resets the controller.

Nothing
Device shutdown function . Stops and resets the controller . Nothing
static int
bxe_shutdown(device_t dev)
{
    struct bxe_softc *sc;
    sc = device_get_softc(dev);
    BLOGD(sc, DBG_LOAD, "Starting shutdown...\n");
    bxe_periodic_stop(sc);
    BXE_CORE_LOCK(sc);
    bxe_nic_unload(sc, UNLOAD_NORMAL, FALSE);
    BXE_CORE_UNLOCK(sc);
    return (0);
}
static int bxe_shutdown ( device_t dev ) { struct bxe_softc * sc ; sc = device_get_softc ( dev ) ; BLOGD ( sc , DBG_LOAD , " \n " ) ; bxe_periodic_stop ( sc ) ; BXE_CORE_LOCK ( sc ) ; bxe_nic_unload ( sc , UNLOAD_NORMAL , FALSE ) ; BXE_CORE_UNLOCK ( sc ) ; return ( 0 ) ; }
Device shutdown function.
Device shutdown function .
/* stop the periodic callout */