aboutsummaryrefslogtreecommitdiff
path: root/1/main.c
blob: 7299f3647295621565399a2bb5798337d9316fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <linux/init.h>
#include <linux/module.h>

MODULE_LICENSE("MIT");

static int mod_init(void) {
	printk(KERN_ALERT "Hello, world\n");
	return 0;
}

static void mod_exit(void) {
	printk(KERN_ALERT "Goodbye, world\n");
}

module_init(mod_init);
module_exit(mod_exit);