#include #include #include /* Meta Info */ MODULE_DESCRIPTION("Demo kernel module."); MODULE_VERSION("0.0.1"); MODULE_AUTHOR("Imbus"); MODULE_LICENSE("GPL"); /** * @brief Called on load */ static int __init demo_mod_init(void) { printk(KERN_INFO "Demo module loaded successfully..."); return 0; } /** * @brief Called on unload */ static void __exit demo_mod_exit(void) { printk(KERN_INFO "Demo module unloaded successfully..."); } module_init(demo_mod_init); module_exit(demo_mod_exit);