]> hackdaworld.org Git - my-code/kernel.git/commitdiff
-
authorhackbard <hackbard>
Tue, 4 Mar 2003 10:29:41 +0000 (10:29 +0000)
committerhackbard <hackbard>
Tue, 4 Mar 2003 10:29:41 +0000 (10:29 +0000)
general.h [new file with mode: 0644]
hello/hello-1.c

diff --git a/general.h b/general.h
new file mode 100644 (file)
index 0000000..1974c1a
--- /dev/null
+++ b/general.h
@@ -0,0 +1,4 @@
+/* general stuff */
+
+#define ME_THE_AUTHOR "hackbard/qubit http://hackdaworld.dyndns.org"
+
index 63c883d72609c2b9059d0953a929c9e4be4b6bf7..24bcea7d1e81c1c9588de21515db074fcc1c6d5e 100644 (file)
@@ -2,5 +2,25 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
+#include <linux/init.h>
+#include "../general.h"
 
+int my_init(void)
+{
+ printk(KERN_ALERT "module loaded\n");
+ printk("KERN_ALERT "
+ return 0;
+}
+
+void my_cleanup(void)
+{
+ printk(KERN_ALERT "module unloaded\n");
+}
+
+module_init(my_init);
+module_exit(my_cleanup);
+
+MODULE_AUTHOR(ME_THE_AUTHOR);
+MODULE_DESCRIPTION("bullshit ;)");
+MODULE_LICENSE("GPL");