X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fkernel.git;a=blobdiff_plain;f=hello%2Fhello.c;fp=hello%2Fhello.c;h=0000000000000000000000000000000000000000;hp=cf6bd93155f292c0aa78b06e4dce4eea841ae75d;hb=8a336451c7768f15c42feaf03c4d82acd88bc6cc;hpb=5ef1719c674e2eeedbfaef7dacb982b3b7c3c74c diff --git a/hello/hello.c b/hello/hello.c deleted file mode 100644 index cf6bd93..0000000 --- a/hello/hello.c +++ /dev/null @@ -1,17 +0,0 @@ -/* my first kernel driver :-) */ - -#include -#include -#include - -int init_module(void) { - printk(KERN_ALERT "hi hackbard, here is your kernel speaking! :)\n"); - printk(KERN_ALERT "some info : %s has process id %i\n",current->comm, - current->pid); - return 0; -} - -void cleanup_module(void) { - printk(KERN_ALERT "bye hackbard ...\n"); -} -