summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/runtime/files/hellomod.c
blob: a383397e933a2a7b51964e2864fd239f5581d12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>

static int __init hello_init(void)
{
        printk(KERN_INFO "Hello world!\n");
        return 0;
}

static void __exit hello_cleanup(void)
{
        printk(KERN_INFO "Cleaning up hellomod.\n");
}

module_init(hello_init);
module_exit(hello_cleanup);

MODULE_LICENSE("GPL");