Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys



On Sun, 16 Oct 2005 11:24:58 +0900
YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost> 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.



Home | Main Index | Thread Index | Old Index