Writing a Simple Linux Kernel Module
netcat released their album as a linux kernel module [0]. Browsing their code might be a more fun way to learn how to write a kernel module with a real "use case".0: https://github.com/usrbinnc/netcat-cpi-kernel-module