Re: Question about memory barriers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thu, 2 Feb 2006, Alan Stern wrote:

> On Thu, 2 Feb 2006, Roland Dreier wrote:
> > Most of this is correct, except that mb() is stronger than just rmb()
> > and wmb() put together.  All memory operations before the mb() will
> > complete before any operations after the mb().  A better way to
> > understand this is to look at the sparc64 definition:
> >
> > #define mb()    \
> >         membar_safe("#LoadLoad | #LoadStore | #StoreStore | #StoreLoad")
> Thanks for the explanation.  Is there any appropriate place, say in
> Documentation/, where these things could be spelled out more completely?

Info could be added to Documentation/DocBook/kernel-locking.tmpl
which already has some barrier info.

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux