summaryrefslogtreecommitdiff
path: root/hello/hello-1.c
diff options
context:
space:
mode:
author0xwille2011-06-24 13:57:37 +0200
committer0xwille2011-06-24 13:57:37 +0200
commitc73b83935734bf0a9b56183a2535dd0daba221fe (patch)
tree17962f67c24fcee8bd0ff292332365294cc366b7 /hello/hello-1.c
downloadlkm-c73b83935734bf0a9b56183a2535dd0daba221fe.tar.gz
Commit inicial
Diffstat (limited to 'hello/hello-1.c')
-rw-r--r--hello/hello-1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/hello/hello-1.c b/hello/hello-1.c
new file mode 100644
index 0000000..aa434a9
--- /dev/null
+++ b/hello/hello-1.c
@@ -0,0 +1,13 @@
+#include <linux/module.h>
+#include <linux/kernel.h>
+
+int init_module(void)
+{
+ printk(KERN_INFO "Hola, mundo! 1\n");
+ return 0;
+}
+
+void cleanup_module(void)
+{
+ printk(KERN_INFO "Adiós, mundo! 1\n");
+}