Hi Everyone
I'm learning about device drivers.
Where can I find drivers source code to look in?
Isn't it part of the kernel headers?
I'm looking for simple device drivers code to begin with. Is there something like that?
Thanks,
Tal
Printable View
Hi Everyone
I'm learning about device drivers.
Where can I find drivers source code to look in?
Isn't it part of the kernel headers?
I'm looking for simple device drivers code to begin with. Is there something like that?
Thanks,
Tal
welcome in forum first you search in goggle ond then post to forum i.e second option in goggle isHTML Code:http://www.adaptec.com/en-US/downloads/linux_source/linux_source_code?productId=ASC-29160LP&dn=Adaptec+SCSI+Card+29160LP
asking good questionHTML Code:http://www.linuxforums.org/forum/newbie/57918-all-new-users-read-first.html
HTML Code:http://www.linuxforums.org/forum/newbie/42937-google-your-best-friend.html
Lots of device drivers are part of Linux kernel, get kernel sources and you'll have plenty of drivers source code to look at.
As Segfault said, you need to download the full kernel sources. The headers are only useful in order to build your own kernel modules, but they don't contain any of the kernel and driver sources themselves. There are 3 main types of device drivers in Linux: character, block, and network. Each type is quite different from the others. You can find and download a PDF copy of "Linux Device Drivers, 3rd Edition" published by O'Reilly. All the chapters in PDF format are available here: Open Book - Linux Device Drivers, 3rd Edition
Thanks for the information.
Tal