Skip to content

Commit

Permalink
[PATCH] pid: remove now unused do_each_task_pid and while_each_task_pid
Browse files Browse the repository at this point in the history
Now that I have changed all of the users remove the old version of these
functions.  This should be a clear hint to any out of tree users that they
should use do_each_pid_task and while_each_pid_task for new code.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Feb 12, 2007
1 parent 41487c6 commit 9f57a54
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions include/linux/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,6 @@ static inline pid_t pid_nr(struct pid *pid)
return nr;
}


#define do_each_task_pid(who, type, task) \
do { \
struct hlist_node *pos___; \
struct pid *pid___ = find_pid(who); \
if (pid___ != NULL) \
hlist_for_each_entry_rcu((task), pos___, \
&pid___->tasks[type], pids[type].node) {

#define while_each_task_pid(who, type, task) \
} \
} while (0)


#define do_each_pid_task(pid, type, task) \
do { \
struct hlist_node *pos___; \
Expand Down

0 comments on commit 9f57a54

Please sign in to comment.