tech-kern archive

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

workqueue semantics [was Re: How to identify specific wait-state for a "DE" process?]



   Date: Tue, 5 Jan 2016 21:48:42 -0500
   From: Thor Lancelot Simon <tls%panix.com@localhost>

   You can probably use workqueues for this.  Looking at the manual page
   again for the first time in years, I think it's a little misleading --
   what I believe is meant by "A work must not be enqueued again until the
   callback is called..." is really "a work item must not be re-enqueued
   before it has been processed by the *func callback", not the alternate,
   crazy reading that would imply workqueues can only have one enqueued
   item at a time.

Your reading of the man page is correct: it is the struct work, not
the struct workqueue *, that may not be reused until the callback is
run.

(I'm not sure how this would help for pgoyette's application, though.)


Home | Main Index | Thread Index | Old Index