Start with basic Linux Kernel module lessons. It uses
https://github.com/pithings/unkernel runs Linux as WebAssembly in the tab. Inside it, gcc builds your module and QEMU boots a small Linux 6.18 kernel to load it into. Build and boot take a minute or two each.