On Mon, Aug 9, 2010 at 21:42, Harsh Kumar <harshkumar1@xxxxxxxxx> wrote: > Hi, > I am new to Kernel Programming and would like to know whats the best way to > start understanding the code structure. > Is debugging the kernel possible by putting breakpoints? > Can someone of you please help me start. None of the method is the best. However, general clue is: - decide which area that you want to concentrate e.g : scheduler, tty, filesystem and so on - read the code directly with the help of cscope or ctags or both...they are great tools to quickly locate function definition etc. Or use online one such lxr.linux.no - experiment inside virtual machine...e.g: debug a kernel and use Qemu to run it. Attach gdb to that kernel via Qemu's gdb stub - break something...e.g make a random modification in filesystem code and try to introduce kernel oops or bug or something similar. Then find out why... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ