On 8/13/06, Dinesh Ahuja <mdlinux7@xxxxxxxxxxx> wrote:
Hi Rahul/Daniel, I fully agree with you. I am able to iterate task list. But I am little bit confused about one thing. When I wrote module and used for_each_process, I was expecting a unresolved error during loading of module. This is because for_each_process is not exported from static kernel which I can verify from /proc/ksysms output.
It is just a macro that expands to a for loop. It is deffined in sched.h #define for_each_process(p) \ for (p = &init_task ; (p = next_task(p)) != &init_task ; ) regards Manish Regmi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/