LWN.net Logo

The __nocast attribute

The __nocast attribute

Posted Mar 31, 2005 16:27 UTC (Thu) by joern (subscriber, #22392)
In reply to: The __nocast attribute by iabervon
Parent article: The __nocast attribute

__bitwise would be the attribute for what you describe.


(Log in to post comments)

The __nocast attribute

Posted Mar 31, 2005 17:38 UTC (Thu) by iabervon (subscriber, #722) [Link]

__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.

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