/********************************************************************************* * Copyright: (C) 2021 LingYun IoT System Studio * All rights reserved. * * Filename: hello.c * Description: This file is the linux kernel sample hello module * * Version: 1.0.0(12/23/2021) * Author: Guo Wenxue * ChangeLog: 1, Release initial version on "12/23/2021 04:36:57 PM" * ********************************************************************************/ #include #include #include static __init int hello_init(void) { printk(KERN_ALERT "Hello, LingYun IoT System Studio!\n"); return 0; } static __exit void hello_exit(void) { printk(KERN_ALERT "Goodbye, I have found a good job!\n"); } module_init(hello_init); module_exit(hello_exit); MODULE_AUTHOR("GuoWenxue "); MODULE_DESCRIPTION("Linux Kernel hello module"); MODULE_LICENSE("Dual BSD/GPL");