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.

> the problem itself is the nontrivial one. You are trying to take a
> spinlock-protected 'snapshot' of an indefinit-length kernel-space object,
> and that is a nontrivial concept. The 'easy' solution is to give up
> atomicity.

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.

-- 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:54    [W:0.154 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site