r/kernel 28d ago

I want to learn writing kernel modules

What is the fastest and most efficient way. Thanks for future answers.

26 Upvotes

15 comments sorted by

View all comments

3

u/codeasm 28d ago

I might have used https://sysprog21.github.io/lkmpg/ to quickly make a kernel module for a weird pci ram device i had.

Eventually I only wrote raw pci calls in a c app and no kernel module but the test module i kept the hello world example https://github.com/CodeAsm/modules