X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fkernel.git;a=blobdiff_plain;f=hello%2Fhello.c;fp=hello%2Fhello.c;h=cf6bd93155f292c0aa78b06e4dce4eea841ae75d;hp=74ace2aaf2f9dd50b45099b518591e0fc33a5b83;hb=03c307fe6b73ddf913a16e30c517c25bfa91a2f4;hpb=3dbc9ddcb4a7031d73f1186f98cb54f8692377b1 diff --git a/hello/hello.c b/hello/hello.c index 74ace2a..cf6bd93 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -2,9 +2,12 @@ #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; }