r/linux_programming • u/SemanticDevice • Sep 24 '19
Up to date Linux device driver walkthrough?
I'm aware of the Linux Device Drivers, but I don't know whether that is still up-to-date information. Can someone advise?
What are some other good sources of information for learning how to develop device drivers and how the kernel's device driver system works?
Thanks!
2
u/ed7coyne Sep 25 '19
I also used this book to learn then realized it didn't reflect the current kernel trends. Never found a better one then. Recommend using this book then just looking at some sample drivers to pick up what is new.
0
Sep 25 '19
[deleted]
2
u/SemanticDevice Sep 25 '19
I wound up installing this setup for playing around with an up-to-date system:
https://github.com/cirosantilli/linux-kernel-module-cheat
So far so good, but I am still very early in playing around with it.
1
u/ZombieRandySavage Sep 25 '19
Dude. You have an entire bsp in there. It’s like a million files.
You need two for an out of tree module build.
1
u/Trant2433 Sep 26 '19
Oh wow thanks for the tip. This looks awesome. Props to the guy who published this repo.
1
u/krtfx555 Sep 25 '19
this is why there are no drivers for linux /s
1
u/edparadox Sep 25 '19
this is why there are no drivers for linux /s
2019 and still one the myths or lies about Linux: http://www.kroah.com/log/linux/ols_2006_keynote.html
1
u/ZombieRandySavage Sep 25 '19
Nah it’s impossible. It all moves too fast.
There are tons of examples of just about everything. Start with a char dev and work up the complexity.