Re: atomic RAM ?

From: Michael Schnell
Date: Fri Apr 09 2010 - 06:54:42 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/