Messages in this thread |  | | Date | Fri, 02 Nov 2001 09:00:19 -0800 | From | "Randy.Dunlap" <> | Subject | Re: vm documentation |
| |
"Yan, Noah" wrote: > > Is there any resources(such as programming guide or referrence book) for the C language grammar in gcc, especially for Kernel? Such as what is _init, 1<<12, asmlinkage, etc? > > > From: Robert Love [mailto:rml@tech9.net] > > See http://kernelnewbies.org for some introduction to kernel hacking...
Noah, Lots of your questions are appropriate for kernelnewbies.org .
__init (with 2 underscores) is defined in the header file linux/include/linux/init.h It marks a code (text) segment as being discardable after boot/init for code that is not in a module (i.e., it is compiled into the kernel boot image).
"1<<12" is C. Take the value 1, shift it left 12 times (bits), giving 0x1000.
~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |