lkml.org 
[lkml]   [1999]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: question: spinlocks and userspace.
On Wed, 10 Nov 1999, Ingo Molnar wrote:

>additionally: if the data structure is never accessed from IRQ handlers
>then it's fast and safe to use a semaphore instead of a spinlock.

You can access it also from irq handlers but you are allowed to use only
down_trylock(). (a similar things happens in show_buffers() in buffer.c
but with spinlocks)

Andrea


-
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:54    [from the cache]
©2003-2011 Jasper Spaans