Re: Difference between atomic operations and memory barriers

From: Michael Schnell
Date: Tue Oct 27 2009 - 06:21:35 EST


Leonidas . wrote:
>
> any_t *ptr = something;
>
> is always atomic even on SMPs without using locks, barriers then my
> doubt is cleared. Thanks.

I assume that this only holds if the pointer (not the thing it points
to) is denoted as volatile.

-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/