On 3/11/07, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
is there, somewhere, a table of all of the gcc attributes used commonly in the kernel? stuff like __devinitdata and so on. a summary of stuff like that would be really handy.
Hi, __devinitdata etc are not really gcc attributes, rather they are mostly just #defines to place the symbols in particular sections. Placing symbols in particular section may have different uses, for e.g., init sections may be discarded after boot up and so on. I think most of the compiler specific stuff can be found in : 0 include/asm-alpha/compiler.h 1 include/asm-mips/compiler.h 2 include/linux/compile.h 3 include/linux/compiler-gcc.h 4 include/linux/compiler-gcc3.h 5 include/linux/compiler-gcc4.h 6 include/linux/compiler-intel.h 7 include/linux/compiler.h 8 include/linux/init.h The comprehensive list of gcc attributes is available at: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html#Variable-Attributes http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html#Type-Attributes Thanks, Rajat -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ