说明: int init_module () { struct task_struct *task; struct list_head *q; list_for_each (q, &init_task.tasks) { task = list_entry (q, struct task_struct, tasks); printk ("" "%d\t%d\t%s\n", task->pid, task->parent->pid, task->comm); } return 0;
<kbxwn> 上传 | 大小:24kb