public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: "Yan, Noah" <noah.yan@intel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: vm documentation
Date: Fri, 02 Nov 2001 09:00:19 -0800	[thread overview]
Message-ID: <3BE2D123.DAC9B571@osdl.org> (raw)
In-Reply-To: <A9B0C3C90A46D411951400A0C9F4F67103BA56E3@pdsmsx33.pd.intel.com>

"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

  reply	other threads:[~2001-11-02 17:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-02  7:53 vm documentation Yan, Noah
2001-11-02 17:00 ` Randy.Dunlap [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18 14:07 VM documentation Mel Gorman
2001-11-02  6:53 vm documentation David Chow
2001-11-02  7:22 ` Robert Love
2001-11-02 11:25 ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BE2D123.DAC9B571@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=noah.yan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox