Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the new ( since Linux Kernel 2.6.20 ) workqueue interface

Tags:

I've been reading about Linux Kernel development / device drivers and all of the books I've looked at use the pre-2.6.20 workqueue interface. This includes the Linux Kernel Module Programming Guide, Robert Love's Linux Kernel Development, and Sreekrishnan Venkateswaran's Essential Linux Device Drivers which was published in April 2008!

Does anyone have a guide to using the "new" 2.6.20+ workqueue interface?

Just for reference, Ubuntu 8.04 which I'm developing on at the moment, was released over a year and a half ago and includes kernel 2.6.24.

Edit

stsquad's answer led me to this guide to porting code to the new 2.6.20 workqueue's.

like image 591
Robert S. Barnes Avatar asked Nov 05 '09 13:11

Robert S. Barnes


1 Answers

You can't go wrong with the excellent API articles on LWN (http://lwn.net/Kernel/Index/) which document a lot of the new APIs as they go into the kernel. There is a whole section devoted to Workqueues which is worth a read.

Workqueues have been in the kernel for a while so I assume your thinking about the recent-ish rework of the API.

Whilst I'm at it I can heartily recommend a subscription to LWN. All their articles are available for free after a week or so but it's worth supporting the high quality writing, especially if your an aspiring kernel hacker.

like image 116
stsquad Avatar answered Oct 15 '22 20:10

stsquad