added current struct
authorhackbard <hackbard>
Mon, 3 Mar 2003 15:49:28 +0000 (15:49 +0000)
committerhackbard <hackbard>
Mon, 3 Mar 2003 15:49:28 +0000 (15:49 +0000)
hello/hello.c

index 74ace2a..cf6bd93 100644 (file)
@@ -2,9 +2,12 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
+#include <linux/sched.h>
 
 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;
 }