Re: What does atomic_read actually do?

From: Robert Love
Date: Sun Dec 19 2004 - 17:21:03 EST

On Sat, 2004-12-18 at 15:43 -0500, Joseph Seigh wrote:

> > it does so on *x86
> Is this documented for gcc anywhere? Just because it does so doesn't
> mean it's guaranteed.

Listen to what Arjan is saying: It is not a compiler feature. x86
already guarantees that an aligned word-size read is atomic in the
nothing-can-interleave sense.

Robert Love

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at