LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 09:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,624

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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, 10: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, 02:27 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,624

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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, 08:49 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,314
Blog Entries: 28

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

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


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 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 02:00 AM
how to view .chm files in linux arunvk Linux - Software 9 11-05-2007 10:34 AM
view .chm files in linux? litlmary Linux - Software 3 08-18-2006 05:52 AM
why can i view files on windows but not linux? phpbbm Linux - Networking 4 04-19-2006 03:00 PM
View files on Linux and Windows lennysokol Linux - Software 2 04-03-2005 10:53 AM

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

All times are GMT -5. The time now is 11:37 AM.

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