Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
> > Module Name: src
> > Committed By: yamt
> > Date: Sat Oct 15 17:41:19 UTC 2005
> >
> > Modified Files:
> > src/sys/sys: param.h
> >
> > Log Message:
> > bump to 3.99.10. bufq interface change.
>
> Now you have removed BUFQ_METHOD_MASK, how am I suppossed to
> know the strategy in the driver?
i've added some trivial functions.
you can use the following fragments to implement your ioctls.
YAMAMOTO Takashi
"get" ioctl:
strategyname = bufq_getstrategyname(sc->sc_bufq);
"set" ioctl:
error = bufq_alloc(&new, strategyname, BUFQ_EXACT);
if (error) {
goto out;
}
s = splbio(); /* driver dependent */
old = sc->sc_bufq;
sc->sc_bufq = new;
bufq_move(new, old);
splx(s); /* driver dependent */
bufq_free(old);
Home |
Main Index |
Thread Index |
Old Index