SHARE
TWEET

Untitled

a guest Dec 24th, 2012 14 Never
  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);
RAW Paste Data
Top