HelloWorldLKM A simple example of Linux Kernel Module $ make # insmod helloworld.ko # rmmod helloworld.ko You will see on dmesg something like: [ 6519.343791] Hello world! [ 6525.014934] Cleaning up module. Interesting related topics: https://elinux.org/Deferred_Initcalls https://www.tldp.org/LDP/lkmpg/2.4/html/x354.html