Source Code for “Linux Device Drivers” 3rd edition
April 22nd, 2009
Linux Device Drivers 3rd edition is a very good book by Jonathan Corbet, Alessandro Rubini and Greg Kroah-Hartman. The book itself is under Creative Commons license, so it’s easy to get it online. But the source code, supposed to come along, took me some time to find.
Since all source files are under “Dual BSD/GPL” license, I think it’s OK to redistribute them. If you are having trouble finding it, just like I did, I think I can help you. Click the following link to download the accompanying source code.
source code for Linux Device Drivers 3rd edition
tat helped much…
Hi,
I was able to download the code from the link you have provided.
I am unable to compile any folder of Rubini Source code. Upon investigation and browsing on the net I found that code given by Rubini is referring to old kernel and my kernel is new (2.6.32). Because of this I am unable to find some header files and structure members.
Example 1:
#include
is not there in 2.6.32-24-generic kernel.
Example 2:
static int snull_poll(struct net_device *dev, int *budget)
{
int npackets = 0, quota = min(dev->quota, *budget);
struct sk_buff *skb;
In the above code, dev is referring to member quota of struct net_device, but this member is not part of linux/netdevice.h.
So in conclusion, I cannot use Rubini Code with my Kernel.
Do you have device driver source code from Rubini for Latest Kernel?
OR
Do you have list of modifications that has to be done to get the code compiled?
Thanks in advance.
Regards
Srinivasa
Hello Srinivasa, “Do you have device driver source code from Rubini for Latest Kernel? OR Do you have list of modifications that has to be done to get the code compiled?”
Sorry the answer is “no” for both of your questions.
Maybe someone else that is viewing this webpage can help you.