Advertisement
Guest User

Untitled

a guest
Dec 24th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #define for_each_process(p)
  2. for (p = &init_task ; (p = next_task(p)) != &init_task ; )
  3.  
  4. if (p->real_parent->pid == NULL)
  5. printk("PROCESS: name: %s pid: %d n",p->comm,p->pid);
  6. else
  7. printk("THREAD: name: %s tid: %d n",p->comm,p->pid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement