projects
/
my-code
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c307f
)
-
author
hackbard
<hackbard>
Tue, 4 Mar 2003 10:29:41 +0000
(10:29 +0000)
committer
hackbard
<hackbard>
Tue, 4 Mar 2003 10:29:41 +0000
(10:29 +0000)
general.h
[new file with mode: 0644]
patch
|
blob
hello/hello-1.c
patch
|
blob
|
history
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"
+
diff --git
a/hello/hello-1.c
b/hello/hello-1.c
index
63c883d
..
24bcea7
100644
(file)
--- a/
hello/hello-1.c
+++ b/
hello/hello-1.c
@@
-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");