From c73b83935734bf0a9b56183a2535dd0daba221fe Mon Sep 17 00:00:00 2001 From: 0xwille Date: Fri, 24 Jun 2011 13:57:37 +0200 Subject: Commit inicial --- hello/hello-4.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 hello/hello-4.c (limited to 'hello/hello-4.c') diff --git a/hello/hello-4.c b/hello/hello-4.c new file mode 100644 index 0000000..32e2cb6 --- /dev/null +++ b/hello/hello-4.c @@ -0,0 +1,28 @@ +#include +#include +#include + +static int __init hello_4_init(void) +{ + printk(KERN_DEBUG "DEBUG: Hola, mundo! 4\n"); + printk(KERN_INFO "INFO: Hola, mundo! 4\n"); + printk(KERN_NOTICE "NOTICE: Hola, mundo! 4\n"); + printk(KERN_WARNING "WARNING: Hola, mundo! 4\n"); + printk(KERN_CRIT "CRIT: Hola, mundo! 4\n"); + printk(KERN_ALERT "ALERT: Hola, mundo! 4\n"); + printk(KERN_EMERG "EMERG: Hola, mundo! 4\n"); + + return 0; +} + +static void __exit hello_4_exit(void) +{ + printk(KERN_INFO "Adiós, mundo! 2\n"); +} + +module_init(hello_4_init); +module_exit(hello_4_exit); + +MODULE_AUTHOR("Guillermo Ramos"); +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Módulo tonto"); -- cgit v1.2.3