LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2005, 11:45 PM   #1
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
Linux Kernel 2.6


Hi ,
I am fairly comfortable with Linux and have afairly good hold on the basics. I now need to get into t he working of the Linux kernel and find out how everything works. On Safari I found a book by Robert Love which covers 2.6 (this is what I need) . My question is : Is this a good place to start? or can you guys recommend something else or some other specific sources apart from www.google.com . All suggestions r welcome.

Thnx
Arvind
 
Old 11-21-2005, 01:17 AM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
I would suggest starting by getting to know all the options than can be compiled in or as modules for the kernel. Being able to know what you need for your machine(s) is quite important. Go to the kernel source (usually /usr/src/linux) and issue command
Code:
make menuconfig
There are menuconfig help options for each section and option, they are usually quite descriptive..

If you were talking about something more advanced than this, such as how the kernel works, code base.. etc.. sorry, somone else will have to get you on that one...
 
Old 11-21-2005, 01:28 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
http://www.kernelhacking.org/
http://people.netfilter.org/~rusty/u...ing-guide.html
http://jungla.dit.upm.es/~jmseyas/li...kers-docs.html
http://www.linuxchix.org/content/cou...ernel_hacking/

Basically it depends on what you want to do.
Books can be good for basics, however the kernel changes so much and so fast that anything written more than 6 months ago will be out of date (this is subjective of course - others will disagree, some even with hairtrigger-flamethrowrs at the ready...)

Installing a custom kernel is probably the best place to start.
Don't worry about the book, just hunt down the information. Typically what you need is spread between several howtos and manuals so you'll get a good workout.

That linux-chix site BTW is one of the best yet leave it to the ladies to get it right...

It also helps if your distro is quite configurable. Slack is great for this kind of learning - though I did my first kernel hack on RH9.
 
Old 11-21-2005, 08:50 PM   #4
shukla_chanchal
Member
 
Registered: Oct 2005
Location: banglore(india)
Posts: 62

Rep: Reputation: 15
what is module programming

oh can u tell me what really is linux module programming
some days before i was trying to access system clock but i was not able to do that
i also wanted t do sth with pid_t data structure of structure but i was unable to do tha
please throw some light from basics
 
Old 11-22-2005, 05:20 AM   #5
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Original Poster
Rep: Reputation: 30
Thnx guyz 4 the help..I will go thru what you'll advised and get back if I have problems

Arvind
 
Old 11-22-2005, 05:38 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Great links from Simon Bridge - *however* do not accept his discouragement re buying the book.

Excellent tome - and Robert Love knows his sh1t.
Buy it - it's as at 2.6.10, so hasn't aged too much in the 6 months I've had my copy.

I'd also recommend "Understanding the Linux Kernel" - it's "only" 2.4, but goes into concepts much better. The two works compliment each other nicely.

I like to have a book I can flip through rather than a pile of web pages - maybe it's just me.
 
Old 11-22-2005, 05:22 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Oh I hardcopy the web pages and bind them

My discouragement was based on general principles. After all, I got a book with my first linux (Red Hat 9 Linux for Dummies ... heh heh ... but only because I needed to learn in a hurry and it was by Hall and Seary. It was out of date, but not in terms of the distro it came with, and maddog happily discussed omissions, snafus and fubars etc.)

The right book can be a lifesaver.
Good desk references tend to be technical.
Kernel references tend to be kernel specific - but provide a point of departure: depends what you want to do (as I said before).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian patched kernel vs official Linux Kernel gerald45 Debian 7 10-12-2005 04:45 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
How to write a kernel module(kernel object, .ko) on linux-2.6.0? oskernel Programming 1 10-21-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration