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); }
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); }