projects
/
my-code
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3dbc9dd
)
added current struct
author
hackbard
<hackbard>
Mon, 3 Mar 2003 15:49:28 +0000
(15:49 +0000)
committer
hackbard
<hackbard>
Mon, 3 Mar 2003 15:49:28 +0000
(15:49 +0000)
hello/hello.c
patch
|
blob
|
history
diff --git
a/hello/hello.c
b/hello/hello.c
index
74ace2a
..
cf6bd93
100644
(file)
--- a/
hello/hello.c
+++ b/
hello/hello.c
@@
-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;
}