From: hackbard Date: Mon, 3 Mar 2003 15:49:28 +0000 (+0000) Subject: added current struct X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=03c307fe6b73ddf913a16e30c517c25bfa91a2f4;p=my-code%2Fkernel.git added current struct --- 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; }