LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to view source code (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-view-source-code-414766/)

nick021 02-12-2006 11:24 PM

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

btmiller 02-12-2006 11:35 PM

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.

nick021 02-13-2006 12:00 AM

thanks btmiller..

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

regards

scuzzman 02-13-2006 12:32 AM

/usr/src/linux

nick021 02-13-2006 12:51 AM

thanks scuzzman...

i got the source code ..


All times are GMT -5. The time now is 07:29 AM.