LWN.net Logo

ACCESS_ONCE()

ACCESS_ONCE()

Posted Aug 13, 2012 16:35 UTC (Mon) by daglwn (subscriber, #65432)
In reply to: ACCESS_ONCE() by dgm
Parent article: ACCESS_ONCE()

Yes, it is. It uses typeof().

But ignoring that, nye has the more useful response. :)


(Log in to post comments)

ACCESS_ONCE()

Posted Aug 17, 2012 10:37 UTC (Fri) by dgm (subscriber, #49227) [Link]

typeof() is clearly something acceptable in gcc's C dialect. Or have they removed their own extension without the word noticing?

ACCESS_ONCE()

Posted Aug 20, 2012 10:07 UTC (Mon) by etienne (subscriber, #25256) [Link]

The thing is, can the type returned by typeof() be modified by adding the "volatile" keyword, how much can it be modified (how to remove volatility, possible to change the sign-ness by adding signed/unsigned)...

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds