]> Git Repo - linux.git/commitdiff
[PATCH] namespaces: utsname: introduce temporary helpers
authorSerge E. Hallyn <[email protected]>
Mon, 2 Oct 2006 09:18:10 +0000 (02:18 -0700)
committerLinus Torvalds <[email protected]>
Mon, 2 Oct 2006 14:57:21 +0000 (07:57 -0700)
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: Serge E. Hallyn <[email protected]>
Cc: Kirill Korotaev <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Herbert Poetzl <[email protected]>
Cc: Andrey Savochkin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/utsname.h

index 13e1da0c538d209871bb1099169004aa24d52072..77e97a5755d9b3044bedfd3329aa64a8d173c509 100644 (file)
@@ -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;
 #endif
This page took 0.06018 seconds and 4 git commands to generate.