On Wed, Feb 9, 2022 at 11:36 AM Valdis Klētnieks
<[email protected]> wrote:
> ...
> It turns out that the C keyword 'volatile' usually doesn't actually do what
> needs to happen if a variable actually *is* volatile and subject to change
> while the executing thread isn't looking.
>
> There's a good documentation file on this:
>
> Documentation/process/volatile-considered-harmful.rst

Also see Ian Lance Taylor's https://www.airs.com/blog/archives/154.
He's a GCC dev, and he explains how GCC interprets the keyword.

Jeff

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to