lkml.org 
[lkml]   [1999]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Purpose of [start|end]_bh_atomic?

On Mon, 15 Feb 1999, Regis Duchesne wrote:

> What is the exact purpose of start_bh_atomic() and end_bh_atomic()?
> Reading the source, I can see that some drivers use these functions, but I
> can't see how it is related to bottom half handlers.

<PRE>
start_bh_atomic();
<CODE>
end_bh_atomic();
<POST>

they guarantee that no BH on any CPU will execute during the execution of
the <CODE> critical section. bhs may run during <PRE> and <POST>. Note
that this locks out _all_ bhs. It's main uses are in the networking code.

-- mingo




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site