/* * Copyright (C) 2024 LingYun IoT System Studio * Author: Guo Wenxue * * Hello driver example in linux kernel. */ #include #include #include static __init int hello_init(void) { printk(KERN_ALERT "Hello, Linux kernel module.\n"); return 0; } static __exit void hello_exit(void) { printk(KERN_ALERT "Goodbye, Linux kernel module.\n"); } module_init(hello_init); module_exit(hello_exit); MODULE_LICENSE("Dual BSD/GPL"); MODULE_AUTHOR("GuoWenxue ");