Tutorial :Where can I find sample source files for Linux Device Drivers, Third Edition? [closed]


I am working through Linux Device Drivers, Third Edition and while the book is released under Creative Commons Attribution-Share Alike license, I can't seem to locate the source code for the examples used in the book.

Some Amazon reviews mention that they do exist, but fail to provide a reference. In the book snippets you can see that the license is GPL, so they must exist somewhere.

My google-fu is bringing up malware infested pits of despair.

What would be a good source for those example files used in LDD book?

Turns out there are two good sources:

Former is more authoritative, but latter might be better for later kernel revisions.


That was published by O'Reilly's publisher, it might be worth your while to check there at their site. The link is here. Also is the link to their source code.

Edit: Adding another link.

Hope this helps


You can find updates LDD3 examples here https://github.com/martinezjavier/ldd3 And online book in html format here: http://www.makelinux.net/ldd3/


Here is summary of answers above:


I'm late to the party here, but someone else has another version of updated LDD3 code, found here: https://github.com/duxing2007/ldd3-examples-3.x. The author has kept it up to date for kernels 3.0 through 3.14. There are slight differences from the martinezjavier version, such as using mutex_init instead of sema_init.


Upon further searching I found Florida State University Linux Kernel course page, which does have a version of them.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »