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 10:24:33AM +0000, Emmanuel Dreyfus wrote:
> Hello
> Another caveat with DADHI porting: that require something like 
> Linux Workqueues feature:
> (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?

Others have already mentioned workqueue(9).  I find it difficult to use,
myself.  Sometimes I have used softint(9), instead, as in ixgbe(4) where
I was ported a FreeBSD driver that used taskqueues to NetBSD.

On a related note, it would be very nice if somebody would write an
implementation of kcont(9) that Matt Thomas proposes at


David Young    Urbana, IL    (217) 721-9981

Home | Main Index | Thread Index | Old Index