Thanks, But I dont't think that will list the "threads"(children) --- SK malik <srikrishanmalik@xxxxxxxxx> wrote: > ---------------------------- > Try for_each_process macro defines in sched.h > > it will take only 5-6 lines of code > ---------------------------- > > On Mon, 31 Jan 2005 16:31:41 -0800, Om <omanakuttan@xxxxxxx> wrote: > > On Mon, Jan 31, 2005 at 03:26:01PM -0800, Jed Brazos hit keys to express the following: > > > 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); > > Thanks. I did not know of these. > > > > -- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/