From 09f7937cd0bb525f3a5d73d1c9eeab92ff6e22f7 Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 4 Mar 2003 10:29:41 +0000 Subject: [PATCH] - --- general.h | 4 ++++ hello/hello-1.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 general.h diff --git a/general.h b/general.h new file mode 100644 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 --- a/hello/hello-1.c +++ b/hello/hello-1.c @@ -2,5 +2,25 @@ #include #include +#include +#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"); -- 2.39.2