From 472636a15aca215c953a5cf4028a3a5df8f899f9 Mon Sep 17 00:00:00 2001 From: gatieme Date: Mon, 9 May 2016 16:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=E9=81=8D=E5=8E=86?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=BF=9B=E7=A8=8B=E7=9A=84=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E4=BB=A3=E7=A0=81...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- study/process/list/list_process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/study/process/list/list_process.c b/study/process/list/list_process.c index 1dbdce2..7842d28 100644 --- a/study/process/list/list_process.c +++ b/study/process/list/list_process.c @@ -46,11 +46,14 @@ static int list_process_init(void) // because the list of process is an double-linked circular list // we can also list all the process from the current process + /* list_for_each(pos, ¤t->children) { pTask = list_entry(pos, struct task_struct, sibling); printk(KERN_ALERT "%d\t%s\n", pTask->pid, pTask->comm); } + */ + break; case 2 : method = "for_each_process"; @@ -79,7 +82,7 @@ static int list_process_init(void) static void list_process_exit(void) { - printk(KERN_ALERT "GOOD BYE!!\n"); + printk(KERN_ALERT "GOOD BYE--list process!!\n"); }