LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 04-08-2008, 11:41 PM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,373

Rep: Reputation: 118Reputation: 118
LXer: This week at LWN: Atomic context and kernel API design


Published at LXer:

An API should refrain from making promises that it cannot keep. A recent episode involving the kernel's in_atomic() macro demonstrates how things can go wrong when a function does not really do what it appears to do. It is also a good excuse to look at an under-documented (but fundamental) aspect of kernel code design. Kernel code generally runs in one of two fundamental contexts. Process context reigns when the kernel is running directly on behalf of a (usually) user-space process; the code which implements system calls is one example. When the kernel is running in process context, it is allowed to go to sleep if necessary. But when the kernel is running in atomic context, things like sleeping are not allowed. Code which handles hardware and software interrupts is one obvious example of atomic context.

Read More...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: This week at LWN: GCC 4.3.0 exposes a kernel bug LXer Syndicated Linux News 0 03-20-2008 09:10 PM
LXer: This week at LWN: LinuxConf.eu: Documentation and user-space API design LXer Syndicated Linux News 0 09-12-2007 02:40 PM
LXer: This week at LWN: Who wrote 2.6.20? LXer Syndicated Linux News 0 02-23-2007 01:01 PM
LXer: This week at LWN: Who is being divisive? LXer Syndicated Linux News 0 12-01-2006 06:54 AM
LXer: This week at LWN: The kernel lock validator LXer Syndicated Linux News 0 06-01-2006 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration