Getting Deep Inside the Linux Code
PDG asks: "I've been using Linux for several years now and find myself wanting desperately to get involved with its source code, development, and future. Fine, I've compiled a million kernels and other binaries but don't know the first place to start when trying to understand what the hell half the libraries and header files are doing, let alone dealing with the C code itself (yes, I know C fine). Are there any resources or Web sites out there which may help me in my journey to be a Linux Code Jockey?"
There is a funny little site called the Linux Documentation Project
It contains fun Guides that cover topics like:
I do not know enough kernel stuff to know if they are usefull or current but maybe they'll be helpful.
Citrix
Leknor
http://Leknor.com
"So many idiots, so few comets"
I'm in a similar situation and the LKMPG seems to be the best source for detailed knowledge presented in a useful form. It has lots and lots of example modules that cover modules(duh), interrupts, device drivers, scheduling, and using the proc file system. It taught me a lot and the examples kept it interesting. Since most of the kernel is modules anyway, it seems like the LKMPG is a good place to start.
One problem with it is that it only goes up to 2.2. I'm not sure what will change in 2.4
-- no sig
the kernel hackers guide is great - khg.redhat.com is where i got my first taste of the kernel. You can check out a simple driver framework that i wrote at my website (zurk.sourceforge.net) ..its a bit old (2.1.132 kernel) but it should give you a good start ..if you can understand that much, you should be able to tackle the kernel easily. kernel code is fairly simple.
If you want to get into BSD kernel developement, the standard recomendation seems to be "The Design and Implementation of the 4.4BSD Operating System". Its like $50 for the hardcover from amazon.com.
I'm about to buy this myself as i'm wanting to get into OpenBSD a bit more. Does anyone else have any recomendations for BSD kernel work (books or online docs)?
:wq
Linux Core Kernel Commentary
by Scott E. Maxwell
1999
Maxwell is a programmer for NASA's JPL. He has created a Linux internals book in the spirit of the famous Lions' Commentary on Unix printout. It is basically a select 400 pages of the kernel source plus 100 pages of the authors comments on that code.
The author says that this is not meant to be a reference manual. I agree, and believe that well written and interesting code can indeed be regarded as literature.
You probably already know about it, but there is a very fine digest of the Linux kernel mailing list called Kernel Traffic available at kt.linuxcare.com. Since most documentation tend to fall behind the actual developpement, it might be a good idea to read a few past issue to get you going. I am not a kernel hacker personnally (don't know C), but I still find KT really informative. A really good read.
:wq