tech-kern archive

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

Re: Equivalent of Linux Workqueues



On Wed, Jan 11, 2012 at 11:47:39AM +0100, haad wrote:
> Hi,
> 
> On Wed, Jan 11, 2012 at 11:24 AM, Emmanuel Dreyfus 
> <manu%netbsd.org@localhost> wrote:
> > Hello
> >
> > Another caveat with DADHI porting: that require something like
> > Linux Workqueues feature:
> > http://www.kernel.org/doc/htmldocs/device-drivers/ch01s06.html
> > (It only uses schedule_work, cancel_work_sync and flush_work).
> >
> > This is about queuing function execution, cancel it, or wait for it
> > to complete,  Do we have something similar in our kernel, or should
> > I implement a dedicated thread with a queue of functions to run?
> 
> NetBSD has [1], I'm not sure if that's enough for you.
> 
> [1] http://netbsd.gw.com/cgi-bin/man-cgi?workqueue++NetBSD-current

We can't destroy an enqueued work, nor wait for it to complete.
But this can probably be worked around by using a condvar.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index