Subject: Re: CVS commit: src/sys/sys
To: None <juan@xtrarom.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 10/16/2005 11:24:58
> > 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);