/********************************************************************************* * Copyright: (C) 2024 LingYun IoT System Studio. * All rights reserved. * * Filename: hello.c * Description: This file is hello example kernel module build in yocto * * Version: 1.0.0(2024/07/14) * Author: Guo Wenxue * ChangeLog: 1, Release initial version on "2024/07/14 10:34:45" * ********************************************************************************/ #include #include #include int hello_init(void) { printk("Hello, hello-module loaded!\n"); return 0; } void hello_exit(void) { printk("Goodbye, hello-module unloaded!\n"); } module_init(hello_init); module_exit(hello_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Guo Wenxue"); MODULE_DESCRIPTION("A Simple Hello Kernel Module");