Commit 0bdd7aab authored by Serge E. Hallyn's avatar Serge E. Hallyn Committed by Linus Torvalds
Browse files

[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: default avatarSerge E. Hallyn <>
Cc: Kirill Korotaev <>
Cc: "Eric W. Biederman" <>
Cc: Herbert Poetzl <>
Cc: Andrey Savochkin <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent fab413a3
......@@ -32,5 +32,15 @@ struct new_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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment