LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-12-2006, 11:24 PM   #1
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Rep: Reputation: 15
how to view source code


hi there...

i want to know how to view source code of any particular module...
for eg. if i want to see what is source code of 'printer device driver' how could i do so??

regards
 
Old 02-12-2006, 11:35 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,118

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Assuming that the driver source is distributed with the kernel, you can just download the kernel source from kernel.org and find it in the tree, along with all the other drivers packaged with the kernel. Or you can go to the driver's Web site and get the code. This of course assumes that the driver is open source.
 
Old 02-13-2006, 12:00 AM   #3
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Original Poster
Rep: Reputation: 15
thanks btmiller..

but how can i view source code of kernel and related drivers of my current kernel....
where can i find them...

regards
 
Old 02-13-2006, 12:32 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
/usr/src/linux
 
Old 02-13-2006, 12:51 AM   #5
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Original Poster
Rep: Reputation: 15
thanks scuzzman...

i got the source code ..
 
  


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
View Source - How? Opera / FedoraCore3 TSynergy Linux - General 5 09-15-2005 01:51 PM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
source code for tree view ambitionless Programming 0 09-13-2004 09:39 AM
source code of ls avadhootak Linux - Software 1 11-02-2003 12:06 PM
Source Code juniorone Linux - Newbie 1 02-09-2002 12:27 PM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration