LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-23-2012, 03:07 AM   #1
smoothedatol412
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
view Linux kernel files


Hello all,

How do you view the source code of the Linux kernel so you can understand how the kernel works and what it does?

I know that I can view the files in /usr/src/kernel or other places on my computer, but I dont have any idea how to read them or in which order to read them...

I went to kernel.org and downloaded the full source file of
mainline => 3.8-rc1
 
Old 12-23-2012, 10:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,252

Rep: Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433
Quote:
Originally Posted by smoothedatol412 View Post
Hello all,
How do you view the source code of the Linux kernel so you can understand how the kernel works and what it does?

I know that I can view the files in /usr/src/kernel or other places on my computer, but I dont have any idea how to read them or in which order to read them...I went to kernel.org and downloaded the full source file of mainline => 3.8-rc1
They are just source code files...essentially plain text. Open one up with any text-editor you'd like. Read the documentation first. If you already know how to program/write code, you'll have no problems understanding it.
 
Old 12-23-2012, 11:33 AM   #3
smoothedatol412
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Is there any documentation for the documentation? haha
Yes I know programming but when I open of a folder like that, I looks like a puzzle with 1000 pieces and I dont know where to start. I dought the right way is to start reading text files from right to left.

Is there any good web sites or anything that might help?
Thanks for the reply
 
Old 12-23-2012, 03:27 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,252

Rep: Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433Reputation: 4433
Quote:
Originally Posted by smoothedatol412 View Post
Is there any documentation for the documentation? haha
Yes I know programming but when I open of a folder like that, I looks like a puzzle with 1000 pieces and I dont know where to start. I dought the right way is to start reading text files from right to left.

Is there any good web sites or anything that might help?
Thanks for the reply
If you're a programmer, you should be able to follow the documentation. And anything that you don't know will look like a puzzle.

There are many, easily found kernel/kernel module programming guides that Google can point you to, like this one:
http://www.tldp.org/LDP/lkmpg/2.6/html/
 
Old 12-23-2012, 09:49 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,773
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
The Interactive Kernel Map might be useful to you:

http://www.makelinux.net/kernel_map/
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to view chm files in linux sandysingharoy Linux - Newbie 3 10-10-2009 03:00 AM
how to view .chm files in linux arunvk Linux - Software 9 11-05-2007 11:34 AM
view .chm files in linux? litlmary Linux - Software 3 08-18-2006 06:52 AM
why can i view files on windows but not linux? phpbbm Linux - Networking 4 04-19-2006 04:00 PM
View files on Linux and Windows lennysokol Linux - Software 2 04-03-2005 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration