LWN.net Logo

Wrong name

Wrong name

Posted Jan 17, 2008 13:06 UTC (Thu) by guus (subscriber, #41608)
In reply to: Wrong name by NAR
Parent article: A kernel security hole

C already supports bitfields:

struct accessMode {
    int open:1;
    int write:1;
    ...
};


(Log in to post comments)

Bitfields

Posted Jan 17, 2008 14:57 UTC (Thu) by zlynx (subscriber, #2285) [Link]

But the kernel doesn't appear to use bitfields much.  I seem to remember that it's something
to do with GCC and miserable performance on non-x86 arch's.

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