FreeBSD/sys/geom/sched/gs_delay.c
/*
 * Module glue: allocate descriptor, initialize its fields.
 */
Module glue: allocate descriptor, initialize its fields.
Module glue : allocate descriptor initialize its fields .
static void *
g_delay_init(struct g_geom *geom)
{
	struct g_delay_softc *sc;
	sc = malloc(sizeof *sc, M_GEOM_SCHED, M_WAITOK | M_ZERO);
	sc->sc_geom = geom;
	bioq_init(&sc->sc_bioq);
	callout_init(&sc->sc_wait, CALLOUT_MPSAFE);
	callout_reset(&sc->sc_wait, 1, g_delay_timeout, sc);
	me.units++;
	return (sc);
}
static void * g_delay_init ( struct g_geom * geom ) { struct g_delay_softc * sc ; sc = malloc ( sizeof * sc , M_GEOM_SCHED , M_WAITOK | M_ZERO ) ; sc -> sc_geom = geom ; bioq_init ( & sc -> sc_bioq ) ; callout_init ( & sc -> sc_wait , CALLOUT_MPSAFE ) ; callout_reset ( & sc -> sc_wait , 1 , g_delay_timeout , sc ) ; me . units ++ ; return ( sc ) ; }
Module glue: allocate descriptor, initialize its fields.
Module glue : allocate descriptor initialize its fields .