20110616

Fwd: Getting started with kernel sources [Was: No subject]

---------- Forwarded message ----------
From: Daniel Baluta <daniel.baluta@gmail.com>
Date: Thu, Jun 16, 2011 at 11:48 AM
Subject: Getting started with kernel sources [Was: No subject]
To: Venkateswarlu P <p.venkatesh551@gmail.com>
Cc: Kernelnewbies@kernelnewbies.org


On Thu, Jun 16, 2011 at 2:41 PM, Venkateswarlu P
<p.venkatesh551@gmail.com> wrote:
> how to understand the kernerl source  files in a simple way
>
>
> what header  files i have to understand first
>
>
> for example  to understand      do_fork()     function  for process
> creation  which is defined in  kernel/fork.c

There's no shortcuts. :)

Use dump_stack() in various places and check
what functions are called.
Also use lxr ([1]) for code browsing.

Please add a relevant Subject description to your emails.

thanks,
Daniel.

[1] http://lxr.linux.no/

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--
田华  (plutoid.th) Linux SA && DBA && MountainCycle
http://nanjinglug.org
http://groups.google.com/group/njlug