summaryrefslogtreecommitdiff
path: root/hello/hello-2.c
blob: 5819e384cb1226e633b30879029d926c6454974d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>

static int __init hello_2_init(void)
{
	printk(KERN_INFO "Hola, mundo! 2\n");
	return 0;
}

static void __exit hello_2_exit(void)
{
	printk(KERN_INFO "Adiós, mundo! 2\n");
}

module_init(hello_2_init);
module_exit(hello_2_exit);

MODULE_AUTHOR("Guillermo Ramos");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Módulo tonto");