FreeBSD/sys/geom/sched/gs_rr.c
/*
 * Module glue -- drain the callout structure, destroy the
 * hash table and its element, and free the descriptor.
 */
Module glue -- drain the callout structure, destroy the
hash table and its element, and free the descriptor.
Module glue -- drain the callout structure destroy the hash table and its element and free the descriptor .
static void
g_rr_fini(void *data)
{
	struct g_rr_softc *sc = data;
	callout_drain(&sc->sc_wait);
	KASSERT(sc->sc_active == NULL, ("still a queue under service"));
	KASSERT(TAILQ_EMPTY(&sc->sc_rr_tailq), ("still scheduled queues"));
	LIST_REMOVE(sc, sc_next);
	me.units--;
	free(sc, M_GEOM_SCHED);
}
static void g_rr_fini ( void * data ) { struct g_rr_softc * sc = data ; callout_drain ( & sc -> sc_wait ) ; KASSERT ( sc -> sc_active == NULL , ( " " ) ) ; KASSERT ( TAILQ_EMPTY ( & sc -> sc_rr_tailq ) , ( " " ) ) ; LIST_REMOVE ( sc , sc_next ) ; me . units -- ; free ( sc , M_GEOM_SCHED ) ; }
Module glue -- drain the callout structure, destroy the
 hash table and its element, and free the descriptor.
Module glue -- drain the callout structure destroy the hash table and its element and free the descriptor .