# # Learning to write Linux device drivers
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© May 2008 Anthony Lawrence

Essential Linux Device Drivers

  • Essential Linux Device Drivers
  • Sreekrishnan Venkateswaran
  • Prentice Hall
  • 9780132396554


Regular readers here know that I have been very disappointed with most Linux kernel and device driver books. I did like The Linux Kernel Primer, but until this "Essential Linux Device Drivers" book landed on my desk, that was about it.

I admit that it's very hard to write a good book in this area. You simply have to make assumptions about the readers knowledge - if you don't, you'll be writing an encyclopedia or two. However, I still think that my complaints have been justified, and this author proves that you CAN write a readable, information packed book about Linux device drivers without glossing over vast areas.

Well, that's not entirely true: vast areas are still passed by at break-neck speed, but there's a difference here: every chapter tries to give a high level overview of the area to be discussed, which is then followed by very well explained examples of code, and finally finishes up with pointers to the parts of Linux source code that are relevant. That's a formula that works, and the author also often includes pointers to other relevant resources too. With a little Googling, you should be able to really get a lot out of this book.

As you'd expect, this starts out with an overview of the kernel itself, and it's probably the best I've ever seen. Individual Linux boot messages are pulled out, explained, and the the source code that produced them is examined. It then goes on to discuss kernel locks, briefly looks at procfs and memory allocation, and closes (as each chapter does) with pointers to where to look in the source for the subjects discussed. The next few chapters cover more basic concepts like kernel locks and threads, and then the rest of the book is all device drivers.. starting simply and progressing to more complicated hardware, but always following the format of first giving an overview of the how and why, then presenting sample driver(s), a bit on how to most easily debug, and finally pointers to real kernel sources.

Very well done, and I recommend it. It is a bit expensive, but I think it's worth it.

Tony Lawrence 2008-05-06 Rating: 4.5

Amazon Order (or just read more about) Essential Linux Device Drivers  from Amazon.com


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> Learning to write Linux device drivers

1 comment


Inexpensive and informative Apple related e-books:

Take control of Apple TV, Second Edition

El Capitan: A Take Control Crash Course

Take Control of iCloud, Fifth Edition

Take Control of Pages

Take Control of Apple Mail, Third Edition





More Articles by © Anthony Lawrence







Tue May 6 13:28:28 2008: 4175   TonyLawrence

gravatar
I should look at covers.. Alan Cox has a blurb:

“Probably the most wide ranging and complete Linux device driver book I’ve read.”

That's a pretty solid recommendation, isn't it?

------------------------


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





Dead trees and polluting ink. I'll be happy to see them go. (Tony Lawrence)




Linux posts

Troubleshooting posts


This post tagged:

Books

Drivers

Hardware

Kernel

Linux

Reviews



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode