?

Log in

No account? Create an account

Previous Entry | Next Entry

a real, working Linux driver

Remember that "Write a real, working Linux driver" tutorial I attended at OLS? With some help from the presenter, I've gotten the driver working! The sample shell script polls the temperature probe once a second and outputs its temperature reading in Fahrenheit and Celsius. Nifty.

So, tinkerers out there, do you want to try it too? I'll lend you the temperature probe, and I can point you to the slides from the tutorial as well as a tarball of all the code. For some background material, you can read the entire USB Drivers chapter (pdf) of the O'Reilly Linux Device Drivers book online.

Tags:

Comments

( 5 comments — Leave a comment )
jessekornblum
Aug. 11th, 2005 02:36 pm (UTC)
Go you! Is this your first step to becoming a true kernel h4x0r, or just something you've wanted to try?
clahey
Aug. 11th, 2005 09:03 pm (UTC)
You should make it so that hal notices that you've inserted the temperature probe and pops up a GUI temperature app.
clahey
Aug. 11th, 2005 09:05 pm (UTC)
Rather, you should have an app that monitors for hal "new temperature probe" events and pops up a gui. I don't know the details of how this works exactly, but I've seen it in practice (with cameras, for instance.)
thewronghands
Aug. 11th, 2005 10:58 pm (UTC)
That's awesome. I don't have time at the moment, and I think my C is still too weak to really dive in, but that's really great. Go you!
puzzlement
Aug. 11th, 2005 11:13 pm (UTC)
Hey cool. I will do some horn-tootin' for you ;)
( 5 comments — Leave a comment )