APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2003/10/30 bottom half

Some material is very old and may be incorrect today

© October 2003 Tony Lawrence

This is always going to refer to some interupt driven driver.

When the kernel gets an interrupt, the appropriate driver is called. As nothing else can happen while that event is being processed, it is important to get done and let the kernel get back to other work as soon as possible. With that thought in mind, the concept of top and bottom half drivers was invented: the top half, the part that gets called initially by the kernel, does the absolute bare minimum that has to be done (anything that involves exclusive access to hardware or other resources and that must be done instantly), and then sets up things so that its bottom half, which will do all the rest of the work, can be executed more leisurely.

Just how and when bottom halves get executed is a matter of kernel design. You might read, for example, that bottom halves are deprecated in recent Linux kernels. That's not exactly true: the concept still very much exists, it's just how they are handled that is different: in the new kernels you actually have choices as to how these things will be run: as softirqs or tasklets, which are very much like they always were, or to stick them in work queues, which is much more like firing off a user process. See I'll Do It Later: Softirqs, Tasklets, Bottom Halves, Task Queues, Work Queues and Timers

If you found something useful today, please consider a small donation.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> bottom half

Inexpensive and informative Apple related e-books:

Photos for Mac: A Take Control Crash Course

Are Your Bits Flipped?

Take control of Apple TV, Second Edition

Take Control of Pages

Take Control of iCloud

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

If you tell the truth you don't have to remember anything. (Mark Twain)

Linux posts

Troubleshooting posts

This post tagged:





Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode