FreeBSD/sys/geom/sched/g_sched.c
/*
 * g_sched calls the scheduler algorithms with this lock held.
 * The locking functions are exposed so the scheduler algorithms can also
 * protect themselves e.g. when running a callout handler.
 */
g_sched calls the scheduler algorithms with this lock held.
The locking functions are exposed so the scheduler algorithms can also
protect themselves e.g. when running a callout handler.
g_sched calls the scheduler algorithms with this lock held . The locking functions are exposed so the scheduler algorithms can also protect themselves e . g . when running a callout handler .
void
g_sched_lock(struct g_geom *gp)
{
	struct g_sched_softc *sc = gp->softc;
	mtx_lock(&sc->sc_mtx);
}
void g_sched_lock ( struct g_geom * gp ) { struct g_sched_softc * sc = gp -> softc ; mtx_lock ( & sc -> sc_mtx ) ; }
g_sched calls the scheduler algorithms with this lock held.
g_sched calls the scheduler algorithms with this lock held .