From c8f116e17b471704abbb3b1508733aa1bddda7da Mon Sep 17 00:00:00 2001 From: 0xwille Date: Fri, 8 Jul 2011 18:46:53 +0200 Subject: Añadidas cosicas y gitignore --- hello/hello-chardev.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hello/hello-chardev.c (limited to 'hello/hello-chardev.c') diff --git a/hello/hello-chardev.c b/hello/hello-chardev.c new file mode 100644 index 0000000..a8a80d8 --- /dev/null +++ b/hello/hello-chardev.c @@ -0,0 +1,23 @@ +#include +#include +#include + +extern void dumb(void); + +static int __init hello_2_init(void) +{ +// printk(KERN_INFO "Buffer: %s (%p)\n", chardev_buffer, chardev_buffer); + dumb(); + return 0; +} + +static void __exit hello_2_exit(void) +{ +} + +module_init(hello_2_init); +module_exit(hello_2_exit); + +MODULE_AUTHOR("Guillermo Ramos"); +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Módulo tonto"); -- cgit v1.2.3