lkml.org 
[lkml]   [2001]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 [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/

\
 
 \ /
  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