LWN.net Logo

The __nocast attribute

The __nocast attribute

Posted Mar 31, 2005 17:38 UTC (Thu) by iabervon (subscriber, #722)
In reply to: The __nocast attribute by joern
Parent article: The __nocast attribute

__bitwise would also be appropriate, and I'm actually fairly surprised that kmalloc doesn't have it already, but there are also applications for a distinction between size of element and number of elements, which a __nocast that made your size_t arguments have to come from size_t variables (or sizeof expressions, more often) would catch.


(Log in to post comments)

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