lkml.org 
[lkml]   [2010]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: atomic RAM ?
On 04/08/2010 04:15 PM, Arnd Bergmann wrote:
> /* returns one if we got the lock, zero if someone else holds it */
> bool hashlock_addr(volatile void *addr);
>
I don't see how (to do FUTEX) a hashlock can be implemented in a way
that we stay in user mode when locking it and - if it's already locked -
we do a Kernel call for waiting on it being unlocked by another thread.
(This is what FUTEX does.)

-Michael


\
 
 \ /
  Last update: 2010-04-09 12:57    [from the cache]
©2003-2011 Jasper Spaans