where is __memory_barrier in kernel ?

Михаил Кринкин krinkin.m.u at gmail.com
Sun Mar 6 09:38:45 EST 2011


You can see linux/Documentation/memory_barriers.txt about barriers in common


i think, that specific definition of __memory_barrier depend on
architecture. What file did you found this definition in?



2011/3/6 loody <miloody at gmail.com>

> hi all:
> I grep kernel source and found cpu_relax is defined as
> __memory_barrier(), which seems not defined in kernel source.
> At beginning I think it may be the gcc build-in functions, but I
> cannot find in the gcc document.
> Where and what is that used for?
>
> --
> Regards,
> miloody
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110306/aef0abfe/attachment.html 


More information about the Kernelnewbies mailing list