Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a newbie to linux and OS. I just downloaded the source code of linux-2.6.23 online. I want to study the source code to learn the concept of OS kernel. Anybody knows any resource online that can guide me to understand linux kernel source code?
well no... you'll not be able to understand the kernel by reading it. the kernel contains well well over a million lines of code, most of which is highly optimized and uncommented to any huge extent. there are plenty of guides about writing your own kernel, e.g. http://www.osdever.net/tutorials/bas....php?the_id=12 and there are guides about the linux kernel, e.g. http://kernelbook.sourceforge.net/pkbook.html but prinring out the source code over 6 trees worth of paper and sitting down with a lot of coffee isn't going to help you.
Last edited by acid_kewpie; 10-25-2007 at 02:36 PM.
Thanks for your reply. I know it is hard for me to master the entire kernel source code in a short time (or never). But I have read quite a few books talking about OS, and I am kind of reaching a bottleneck of getting any further. So I decide to deep into the linux kernel source code a little bit as an example to get a concrete feeling about how the process scheduling and memory management stuffs are implemented inside the OS. I just wondering whether there are any documentations online that give direct explanation to the source code in any degree of detail. I think it is wise to ask you guys as experienced programmer about some guideline. Thanks again.
Who said we were experienced programmers? Most of us probably could not program our way out of the proverbial wet paper bag.
Knowing how to set up and maintain systems is a far cry from knowing how to design them.....
Have you read this book?
Also, check out the O'Reilly website.
One of the best ways to learn about the kernel is to write a device driver that plugs into the kernel. To do a thorough job of this will have you wandering through an awful lot of the kernel's system structures.
Further, at the end of the journey, you'll have something useful - and who knows? - it might actually wind up in the kernel tree.
And yes, I do kernel programming and that is how I learned the Linux kernel. Unfortunately, my clients won't permit me to release the code under the GPL, and since they pay the bills...
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Have you read a book about operating systems in general? There are two excellent ones that I own "Operating Systems" by Bill Stallings and "Operating Systems Concepts" by Silbershatz, Galvin and Gange.
These books go into the theory of process control, memory management, file systems, etc. That way, you have a good grounding in Operating System Theory, and then you can look at the Linux source and see what you have been learning about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.