X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fpid.h;h=d7e98ff8021eb3bfc38e4c851b425c7eac5c097f;hb=14d83b12c931b03dbe6b3dc79122db02521c890b;hp=22921ac4cfd948b88e10a06c0725b33363b38caf;hpb=a048d3aff8b828b6c0fa7ddd90a531248ab4e0f9;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/pid.h b/include/linux/pid.h index 22921ac4cfd..d7e98ff8021 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h @@ -161,4 +161,13 @@ pid_t pid_vnr(struct pid *pid); } \ } while (0) +#define do_each_pid_thread(pid, type, task) \ + do_each_pid_task(pid, type, task) { \ + struct task_struct *tg___ = task; \ + do { + +#define while_each_pid_thread(pid, type, task) \ + } while_each_thread(tg___, task); \ + task = tg___; \ + } while_each_pid_task(pid, type, task) #endif /* _LINUX_PID_H */