Subject: Re: CVS commit: src/sys/sys
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Juan RP <juan@xtrarom.org>
List: source-changes
Date: 10/16/2005 04:27:42
On Sun, 16 Oct 2005 11:24:58 +0900
YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> wrote:
> 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);
Really cool, I'll show you a patch soon.