예제 #1
0
static void
ld_twa_adjqparam(device_t self, int openings)
{
	struct ld_twa_softc *sc = device_private(self);
	struct ld_softc *ld = &sc->sc_ld;

	ldadjqparam(ld, openings);
}
예제 #2
0
파일: ld.c 프로젝트: MarginC/kame
int
ldbegindetach(struct ld_softc *sc, int flags)
{
	int s, rv;

	if ((sc->sc_flags & LDF_ENABLED) == 0)
		return (0);

	if ((flags & DETACH_FORCE) == 0 && sc->sc_dk.dk_openmask != 0)
		return (EBUSY);

	s = splbio();
	sc->sc_flags |= LDF_DETACH;
	rv = ldadjqparam(sc, 0);
	splx(s);

	return (rv);
}