Hacker News new | past | comments | ask | show | jobs | submit login
The Linux Kernel Module Programming Guide (sysprog21.github.io)
186 points by wrycoder 10 hours ago | hide | past | favorite | 11 comments





qemu is a good way to experience with kernel hacking

Hopefully someone can update the LDD(linux device driver) and Linux kernel books. In fact Linux Foundation should sponsor such efforts since technical book like this is hard to make any profit.


I've written a little bit about writing a driver & using QEMU to create a custom device for it at [0] & [1]

[0]: https://blog.davidv.dev/posts/learning-pcie/

[1]: https://blog.davidv.dev/posts/pcie-driver-dma/


virtme-ng https://github.com/arighi/virtme-ng makes it really easy to launch development kernels in qemu.

The wireguard test suite that’s now in the kernel is an excellent way to experiment with using qemu to develop kernel modules and also do automated tests.

I’d link but cumbersome to find on phone.


Greg KH said pretty explicitly there won’t be a 4th edition LDD


See also The Linux Memory Manager: https://linuxmemory.org/chapters Last update the author sent out was in early July noting that the book is now in editing:

> I am happy to report that I have completed the first draft of the book [...] > I am now in an editing phase, which may well take some time. Sadly I can't give a reasonable estimate as this will be done in concert with my publisher.


looks like a great TOC, sadly no preorder to support its creation :(

I cannot remember (or find) where I signed up for updates, but I get an email every 6 months (or so) from Lorenzo Stoakes personal email. Probably just send him an e-mail and he'll add you to his list.

A detailed, hands-on, build a kernel module right away kind of tutorial. Bravo.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: