提交 0bdd7aab 编写于 作者: S Serge E. Hallyn 提交者: Linus Torvalds

[PATCH] namespaces: utsname: introduce temporary helpers

Define utsname() and init_utsname() which return &system_utsname.  Users of
system_utsname will be changed to use these helpers, after which
system_utsname will disappear.
Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 fab413a3
...@@ -32,5 +32,15 @@ struct new_utsname { ...@@ -32,5 +32,15 @@ struct new_utsname {
extern struct new_utsname system_utsname; extern struct new_utsname system_utsname;
static inline struct new_utsname *utsname(void)
{
return &system_utsname;
}
static inline struct new_utsname *init_utsname(void)
{
return &system_utsname;
}
extern struct rw_semaphore uts_sem; extern struct rw_semaphore uts_sem;
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册