Root/PS2_INTERFACE/drivers/hello.c

1/* Necessary includes for drivers */
2#include <linux/init.h>
3#include <linux/module.h>
4#include <linux/kernel.h> /* printk() */
5
6MODULE_LICENSE("GPL");
7
8static int hello_init(void) {
9  printk("Hello world!. init\n");
10  return 0;
11}
12
13static void hello_exit(void) {
14  printk("Bye, cruel world. exit\n");
15}
16
17module_init(hello_init);
18module_exit(hello_exit)

Archive Download this file

Branches:
master



interactive