Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-20-2009, 11:00 PM   #1
LQ Newbie
Registered: Aug 2009
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
Learning to write drivers - recommendation


I've been reading LDD3 and understand that the example driver (scull, et al) are out of date with respect to the current Linux kernel. The book is very good, but I would like to get more hands-on by modifying the code and seeing what happens. Various postings that I have found suggest that getting the examples to work would be non-trivial at this point. They don't even compile and there have been many kernel changes since they've been written.

So, can anyone suggest a set of existing, current drivers that would be worth studying/modifying to learn with? I'd like to start with something really simple and work up to more complex drivers. So, an order list would be of great benefit. I've looked through the source code and there certainly is a wide range that I could choose from. A little guidance here would be appreciated.

Old 08-22-2009, 08:51 AM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
I think you're pretty much on the right track -- looking at and selecting a relatively simple driver that exists in the kernel currently, and studying that. Just look through the source code of the kernel, and select a driver source.c file that's really small, like maybe a keyboard driver

Also, if it helps at all (in case you missed it) there's a facility within the more recent kernels where you can insert your own driver/module code to be built with the kernel, and test it out.



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
learning to write Perl CGI scripts djgerbavore Programming 1 10-19-2004 12:31 PM
Help needed learning to write a shell script for logons nistur Linux - Networking 8 10-02-2004 02:34 AM
learning how to write shell ashley75 Linux - General 3 05-07-2004 02:05 AM
Help with learning drivers programming! fbarre Programming 1 09-16-2003 12:10 PM
Help with learning drivers programming! fbarre Linux - General 6 09-13-2003 06:50 PM > Forums > Linux Forums > Linux - Newbie

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

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