From: hackbard Date: Tue, 4 Mar 2003 10:29:41 +0000 (+0000) Subject: - X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=09f7937cd0bb525f3a5d73d1c9eeab92ff6e22f7;p=my-code%2Fkernel.git - --- 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");