xref: /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/runtime/files/hellomod.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun #include <linux/module.h>
2*4882a593Smuzhiyun #include <linux/kernel.h>
3*4882a593Smuzhiyun #include <linux/init.h>
4*4882a593Smuzhiyun 
hello_init(void)5*4882a593Smuzhiyun static int __init hello_init(void)
6*4882a593Smuzhiyun {
7*4882a593Smuzhiyun         printk(KERN_INFO "Hello world!\n");
8*4882a593Smuzhiyun         return 0;
9*4882a593Smuzhiyun }
10*4882a593Smuzhiyun 
hello_cleanup(void)11*4882a593Smuzhiyun static void __exit hello_cleanup(void)
12*4882a593Smuzhiyun {
13*4882a593Smuzhiyun         printk(KERN_INFO "Cleaning up hellomod.\n");
14*4882a593Smuzhiyun }
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun module_init(hello_init);
17*4882a593Smuzhiyun module_exit(hello_cleanup);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun MODULE_LICENSE("GPL");
20