projects
/
cascardo
/
kernel
/
samples
/
01.hello
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
01e8c26113dd412f1011b417436b8cb081a92047
[cascardo/kernel/samples/01.hello/.git]
/
hello.c
1
#include <linux/module.h>
2
3
MODULE_LICENSE("GPL");
4
5
static int hello_init(void)
6
{
7
printk(KERN_ALERT "Hello, world!\n");
8
return 0;
9
}
10
11
static void hello_exit(void)
12
{
13
printk(KERN_ALERT "Goodbye, cruel world!\n");
14
}
15
16
module_init(hello_init);
17
module_exit(hello_exit);