This is about as simple as it gets.
To use:
makeinsmod example.kodmesglsmod | grep examplermmod example.kodmesgAlternatively:
make test and observe the two outputs as the module is loaded/unloaded.NOTE: You'll need
build-essentialandlinux-headers-$(uname -r)installed.Followed along from here.