aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-10-02 05:17:28 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 10:57:15 -0400
commit2425c08b37244005ff221efe4957d8aaff18609c (patch)
tree488a298587acb651bd6964c0f9d53c9f48327362 /include/linux/sched.h
parent43fa1adb9334bf4585cd53144eb5911488f85bc7 (diff)
[PATCH] usb: fixup usb so it uses struct pid
The problem with remembering a user space process by its pid is that it is possible that the process will exit, pid wrap around will occur. Converting to a struct pid avoid that problem, and paves the way for implementing a pid namespace. Also since usb is the only user of kill_proc_info_as_uid rename kill_proc_info_as_uid to kill_pid_info_as_uid and have the new version take a struct pid. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 3b7c99265ace..a7fff3304bd6 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1269,12 +1269,12 @@ extern int force_sig_info(int, struct siginfo *, struct task_struct *);
1269extern int __kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp); 1269extern int __kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp);
1270extern int kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp); 1270extern int kill_pgrp_info(int sig, struct siginfo *info, struct pid *pgrp);
1271extern int kill_pid_info(int sig, struct siginfo *info, struct pid *pid); 1271extern int kill_pid_info(int sig, struct siginfo *info, struct pid *pid);
1272extern int kill_pid_info_as_uid(int, struct siginfo *, struct pid *, uid_t, uid_t, u32);
1272extern int kill_pgrp(struct pid *pid, int sig, int priv); 1273extern int kill_pgrp(struct pid *pid, int sig, int priv);
1273extern int kill_pid(struct pid *pid, int sig, int priv); 1274extern int kill_pid(struct pid *pid, int sig, int priv);
1274extern int __kill_pg_info(int sig, struct siginfo *info, pid_t pgrp); 1275extern int __kill_pg_info(int sig, struct siginfo *info, pid_t pgrp);
1275extern int kill_pg_info(int, struct siginfo *, pid_t); 1276extern int kill_pg_info(int, struct siginfo *, pid_t);
1276extern int kill_proc_info(int, struct siginfo *, pid_t); 1277extern int kill_proc_info(int, struct siginfo *, pid_t);
1277extern int kill_proc_info_as_uid(int, struct siginfo *, pid_t, uid_t, uid_t, u32);
1278extern void do_notify_parent(struct task_struct *, int); 1278extern void do_notify_parent(struct task_struct *, int);
1279extern void force_sig(int, struct task_struct *); 1279extern void force_sig(int, struct task_struct *);
1280extern void force_sig_specific(int, struct task_struct *); 1280extern void force_sig_specific(int, struct task_struct *);