X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=hello%2Fhello.c;h=cf6bd93155f292c0aa78b06e4dce4eea841ae75d;hb=5ef1719c674e2eeedbfaef7dacb982b3b7c3c74c;hp=74ace2aaf2f9dd50b45099b518591e0fc33a5b83;hpb=9e37f9f283bb4c910f09b812b858bce3b4de3562;p=my-code%2Fkernel.git 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; }