[lkml]   [2001]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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 []
> See for some introduction to kernel hacking...

Lots of your questions are appropriate for .

__init (with 2 underscores) is defined in the header file
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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.033 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site