Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2006 14:42:53 +0200
From:      usleepless@gmail.com
To:        freebsd-hackers@freebsd.org
Subject:   taskqueue_drain
Message-ID:  <c39ec84c0610250542x2160f11et517693b6b99d91f9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

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?
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".
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?

i am developing this on 6.1-p10, but i imported subr_taskqueue.c and
taskqueue.h from cvs.

thank you for your time,

usleep



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c39ec84c0610250542x2160f11et517693b6b99d91f9>