Thanks, This did what I needed: read_lock(&tasklist_lock); do_each_thread(g,p){ touch_nmi_watchdog(); printk(" p=%d\n",p->pid); } while_each_thread(g,p); read_unlock(&tasklist_lock); > I ran the piece of code. > > [om@turyx ~/prg/pid_list_test]$ dmesg | grep parent| wc -l; ps ax | wc -l > 97 > 99 > > second entry is 99 because of ps and wc. Seems like it is ok. > > -- > The public demands certainties; it must be told definitely and a bit > raucously that this is true and that is false. But there are no certainties. > -- H.L. Mencken, "Prejudice" > __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/