barrier()

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Mon Feb 25 02:25:32 EST 2013


On Mon, 25 Feb 2013 12:26:06 +0530, Shraddha Kamat said:
> #define barrier() asm volatile("" ::: "memory")
>
> What exactly volatile("" ::: "memory")  doing here ?

You probably should read Documentation/memory-barriers.txt
in your kernel source tree, and let us know if you still have
questions after that...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130225/d901dbb8/attachment.bin 


More information about the Kernelnewbies mailing list