Jay Cliburn wrote:
Greg KH wrote:
Oh, and you know that typedefs aren't recommended to be used in the
kernel, right? See the file, Documentation/CodingStyle for more
details.
I'd change the typedefs, but I'm
thrown off by the ATTRIB_PACK business. Can you suggest how to handle it?
#define _AT_ATTRIB_PACK_ __attribute__ ((packed))
typedef struct foo {
...
} _AT_ATTRIB_PACKED_ foo_t
What would this look like "un"typedef'd?
Figured it out.
struct foo {
...
} _AT_ATTRIB_PACK_;
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/