From 03c307fe6b73ddf913a16e30c517c25bfa91a2f4 Mon Sep 17 00:00:00 2001 From: hackbard Date: Mon, 3 Mar 2003 15:49:28 +0000 Subject: [PATCH] added current struct --- hello/hello.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1