LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Need help to understand Linux Kernel (http://www.linuxquestions.org/questions/programming-9/need-help-to-understand-linux-kernel-808855/)

dheerajsuthar2008 05-19-2010 09:47 AM

Need help to understand Linux Kernel
 
Hi,
I am MCA student who is quite interested in GNU/Linux. I have learnt to operate and configure numerous Linux distros and am quite comfortable with it(currently slackware). My other background information:
Things I know:
1. Know C/C++ quite well including data structures
2.Know AT&T assembly quite well including inline assembly
3.Know basic of networking but no formal training till now.
4.Did some amount of system programming(from Beginning Linux Programming)
Things I don't know:
1.Operating Systems- No formal training till now. Tried reading by myself the famous Tanenbaum's Operating system design and implementation but first attempt was failure. Didn't understand much of the stuff esp. Minix part.

Now I have 2 months vacation at my disposal and want to utilize it to know Linux well. I have both Linux kernel development by Robert Love and Understanding Linux Kernel by Orielly press. However I lose track after few chapters.
Kindly do guide me how should I proceed forward. I think I am approaching the subject wrong way. Or should i just abandon the work for some time and concentrate more on system or network programming(as i am interested in security too.)
Please only the person with experience with linux kernel reply.
Thanks in advance.
P.S.: I have also searched through google and this forum and found some good refrences like kernelnewbies site and other but what I need is the prerequistes required. Like for e.g. when they say 'address space', what it means in reality or code.

JohnGraham 05-19-2010 01:27 PM

Have you tried Linux Device Drivers? I don't know how it compares to the other two books you mentioned, but it's very practical and gets you writing some code fairly quickly.

salasi 05-19-2010 03:36 PM

Quote:

Originally Posted by dheerajsuthar2008 (Post 3974191)
Please only the person with experience with linux kernel reply.

Is it really sensible to put this particular pre-condition on replies? Certainly it is not necessary to have kernel experience (and I don't think, in spite of what you write, that there is only one person with kernel experience) to help you with:

Quote:

Originally Posted by dheerajsuthar2008 (Post 3974191)
Like for e.g. when they say 'address space', what it means in reality or code.

Although it is difficult to square the comment above with:

Quote:

Originally Posted by dheerajsuthar2008 (Post 3974191)
1. Know C/C++ quite well including data structures
2.Know AT&T assembly quite well including inline assembly


jf.argentino 05-19-2010 03:38 PM

Practice is the best way to learn something, and I think the easiest part for the linux kernel is device driver, you can learn many interesting aspect by understanding / writing devices driver. You already have some good pointers ("Linux Device Driver", "kernelnewbies"...). Know just found something to practice.

dheerajsuthar2008 05-20-2010 12:48 AM

Thanks JohnGraham and jf.argentino!
I will surely try my luck this time with Linux device drivers. One of my friend has it, so I think I will borrow and try learning from it. Also I am also continuously browsing through the kernelnewbie site and think that its making some sense now.
Again thanks for your kind replies. Shall post any more progress of mine here.

Sergei Steshenko 05-20-2010 12:52 AM

Quote:

Originally Posted by dheerajsuthar2008 (Post 3974191)
...
Now I have 2 months vacation at my disposal and want to utilize it to know Linux well. I have both Linux kernel development by Robert Love and Understanding Linux Kernel by Orielly press. However I lose track after few chapters.
Kindly do guide me how should I proceed forward. I think I am approaching the subject wrong way.
...

Time to have some fun: http://www.linuxdriver.co.il/kernel_map .

dheerajsuthar2008 05-20-2010 01:03 AM

Quote:

Originally Posted by Sergei Steshenko (Post 3975007)

Good one!.. Thanks:hattip:
I also found another good link on forum.. Its related to OS in general:
osdever

syg00 05-20-2010 04:16 AM

Best advice I saw was find something (small) that you are interested in and concentrate on that.
Else you'll just get frustrated. Lots of options - VFS, drivers (IDE, SATA, USB, Video, ...), memory management (allocation, sharing, paging, swapping), filesystems (pick one ...), virtualization ...

I like kernelnewbies - good concept.

dheerajsuthar2008 05-20-2010 09:30 AM

Quote:

Originally Posted by syg00 (Post 3975200)
Best advice I saw was find something (small) that you are interested in and concentrate on that.
Else you'll just get frustrated. Lots of options - VFS, drivers (IDE, SATA, USB, Video, ...), memory management (allocation, sharing, paging, swapping), filesystems (pick one ...), virtualization ...

I like kernelnewbies - good concept.

thanks syg00!
Well that's true.. I have decided to start first with drivers as most of the members on thread have advised me to do so. I have also brought the linux device drivers and will start reading in night.:study: Also have bookmarked kernel newbies will check it out now and then. Hope, will achieve something good in these vacations. Thanks again for all of your kind replies.:hattip: Moderators can kindly close the thread.

MTK358 05-20-2010 09:34 AM

Quote:

Originally Posted by dheerajsuthar2008 (Post 3975516)
Moderators can kindly close the thread.

Mark the thread as Solved (in Thread Tools).


All times are GMT -5. The time now is 06:52 AM.