aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pid.h')
-rw-r--r--include/linux/pid.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h
index 17b9e04d3586..2c0007d17218 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -105,28 +105,28 @@ static inline pid_t pid_nr(struct pid *pid)
105} 105}
106 106
107 107
108#define do_each_task_pid(who, type, task) \ 108#define do_each_task_pid(who, type, task) \
109 do { \ 109 do { \
110 struct hlist_node *pos___; \ 110 struct hlist_node *pos___; \
111 struct pid *pid___ = find_pid(who); \ 111 struct pid *pid___ = find_pid(who); \
112 if (pid___ != NULL) \ 112 if (pid___ != NULL) \
113 hlist_for_each_entry_rcu((task), pos___, \ 113 hlist_for_each_entry_rcu((task), pos___, \
114 &pid___->tasks[type], pids[type].node) { 114 &pid___->tasks[type], pids[type].node) {
115 115
116#define while_each_task_pid(who, type, task) \ 116#define while_each_task_pid(who, type, task) \
117 } \ 117 } \
118 } while (0) 118 } while (0)
119 119
120 120
121#define do_each_pid_task(pid, type, task) \ 121#define do_each_pid_task(pid, type, task) \
122 do { \ 122 do { \
123 struct hlist_node *pos___; \ 123 struct hlist_node *pos___; \
124 if (pid != NULL) \ 124 if (pid != NULL) \
125 hlist_for_each_entry_rcu((task), pos___, \ 125 hlist_for_each_entry_rcu((task), pos___, \
126 &pid->tasks[type], pids[type].node) { 126 &pid->tasks[type], pids[type].node) {
127 127
128#define while_each_pid_task(pid, type, task) \ 128#define while_each_pid_task(pid, type, task) \
129 } \ 129 } \
130 } while (0) 130 } while (0)
131 131
132#endif /* _LINUX_PID_H */ 132#endif /* _LINUX_PID_H */