Date: Sun, 5 Nov 2006 12:33:10 -0800 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: usleepless@gmail.com Cc: freebsd-hackers@freebsd.org Subject: Re: taskqueue_drain Message-ID: <20061105203310.GR25511@funkthat.com> In-Reply-To: <c39ec84c0610250542x2160f11et517693b6b99d91f9@mail.gmail.com> References: <c39ec84c0610250542x2160f11et517693b6b99d91f9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
usleepless@gmail.com wrote this message on Wed, Oct 25, 2006 at 14:42 +0200:
> i am working on improving the driver for hauppauge PVR cards
> (multimedia/pvrxxx). i just implemented a "fast" interrupt using a
> taskqueue ( like the new if_em driver ).
>
> i have a couple of questions:
> 1. if_em is using taskqueue_enqueue rather than
> taskqueue_enqueue_fast. this is contrary to what "man taskqueue"
> claims. how come?
Probably a bug...
> 2. when my capture-device is closed, i need to drain the taskqueue.
> however, taskqueue_drain needs a task as an argument. but i have
> queued 2 different tasks on the taskqueue. what to do? i guess they
> need to be processed "in order".
Just drain each of them.. of course make sure that you unregister
your interrupt (not just disable.. you could use a flag, as you may
get interrupts due to shared interrupts) before draining the taskqueue...
> 3. when and in which version will the "fast" versions of the
> taskqueue-functions be released? will it be backported? if i create a
> patch and send-pr it, is it likely to be accepted for 6.x?
Someone else will have to answer this...
/me wishes he had machines w/ more pci slots so he could keep all his
cards attached for testing.
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061105203310.GR25511>
