提交 bbf73147 编写于 作者: E Eric W. Biederman 提交者: Linus Torvalds

[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: NEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c4b92fc1
...@@ -170,6 +170,7 @@ fastcall void put_pid(struct pid *pid) ...@@ -170,6 +170,7 @@ fastcall void put_pid(struct pid *pid)
atomic_dec_and_test(&pid->count)) atomic_dec_and_test(&pid->count))
kmem_cache_free(pid_cachep, pid); kmem_cache_free(pid_cachep, pid);
} }
EXPORT_SYMBOL_GPL(put_pid);
static void delayed_put_pid(struct rcu_head *rhp) static void delayed_put_pid(struct rcu_head *rhp)
{ {
...@@ -234,6 +235,7 @@ struct pid * fastcall find_pid(int nr) ...@@ -234,6 +235,7 @@ struct pid * fastcall find_pid(int nr)
} }
return NULL; return NULL;
} }
EXPORT_SYMBOL_GPL(find_pid);
int fastcall attach_pid(struct task_struct *task, enum pid_type type, int nr) int fastcall attach_pid(struct task_struct *task, enum pid_type type, int nr)
{ {
...@@ -337,6 +339,7 @@ struct pid *find_ge_pid(int nr) ...@@ -337,6 +339,7 @@ struct pid *find_ge_pid(int nr)
return pid; return pid;
} }
EXPORT_SYMBOL_GPL(find_get_pid);
/* /*
* The pid hash table is scaled according to the amount of memory in the * The pid hash table is scaled according to the amount of memory in the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册