aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-10-02 05:17:11 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 10:57:13 -0400
commitbbf73147e2d46611fbdcbc126f887c614c32350b (patch)
tree1d396e49bab0d19f6712b9a82e939dacce447261 /kernel/pid.c
parentc4b92fc112f7be5cce308128236ff75cc98535c3 (diff)
[PATCH] pid: export the symbols needed to use struct pid *
pids aren't something that drivers should care about. However there are a lot of helper layers in the kernel that do care, and are built as modules. Before I can convert them to using struct pid instead of pid_t I need to export the appropriate symbols so they can continue to be built. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/pid.c')
-rw-r--r--kernel/pid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/pid.c b/kernel/pid.c
index ed89a732432c..5c9037ba42f5 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -170,6 +170,7 @@ fastcall void put_pid(struct pid *pid)
170 atomic_dec_and_test(&pid->count)) 170 atomic_dec_and_test(&pid->count))
171 kmem_cache_free(pid_cachep, pid); 171 kmem_cache_free(pid_cachep, pid);
172} 172}
173EXPORT_SYMBOL_GPL(put_pid);
173 174
174static void delayed_put_pid(struct rcu_head *rhp) 175static void delayed_put_pid(struct rcu_head *rhp)
175{ 176{
@@ -234,6 +235,7 @@ struct pid * fastcall find_pid(int nr)
234 } 235 }
235 return NULL; 236 return NULL;
236} 237}
238EXPORT_SYMBOL_GPL(find_pid);
237 239
238int fastcall attach_pid(struct task_struct *task, enum pid_type type, int nr) 240int fastcall attach_pid(struct task_struct *task, enum pid_type type, int nr)
239{ 241{
@@ -337,6 +339,7 @@ struct pid *find_ge_pid(int nr)
337 339
338 return pid; 340 return pid;
339} 341}
342EXPORT_SYMBOL_GPL(find_get_pid);
340 343
341/* 344/*
342 * The pid hash table is scaled according to the amount of memory in the 345 * The pid hash table is scaled according to the amount of memory in the