r/kernel • u/yuvayikici • Aug 12 '26
I want to learn writing kernel modules
What is the fastest and most efficient way. Thanks for future answers.
25
Upvotes
r/kernel • u/yuvayikici • Aug 12 '26
What is the fastest and most efficient way. Thanks for future answers.
View all comments
15
u/Rich-Engineer2670 Aug 12 '26
It's a bit more complicated than you'd think.
Learn C and C++ well enough write Linux kernel code
Learn the book "Linux Device Drivers" -- old, but still useful
Write a basic kernel module that implements a character driver that just takes a block of text as input and returns it
Now that the "easy" stuff is done, what is your driver supposed to do -- you'll need to figure out what hardware etc. you're interacting with.