demonstrate printk
C kernel module with printk to demonstrate eight log levels.
compile the module with make Monitor log messages in a separate console with sudo dmesg -w insert the module into the kernel with sudo insmod cook.ko remove the module from the kernel with sudo rmmod cook.ko clean the source code directory with make clean
YouTube video url: https://www.youtube.com/watch?v=oZ0vzIyJFqU YouTube video url (bash utilities): https://www.youtube.com/watch?v=P5-goowfBpE