summaryrefslogtreecommitdiffstats
path: root/include/linux/utsname.h
diff options
context:
space:
mode:
authorSerge E. Hallyn <serue@us.ibm.com>2006-10-02 02:18:10 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 07:57:21 -0700
commit0bdd7aab7f0ecd5d337910816aa058c18398628e (patch)
treeb4f89c36e84fc48e756e0fe1dc052839e42a012f /include/linux/utsname.h
parentfab413a334a7b3dd2688c5cd5d4718476e430ea4 (diff)
downloadblackbird-obmc-linux-0bdd7aab7f0ecd5d337910816aa058c18398628e.tar.gz
blackbird-obmc-linux-0bdd7aab7f0ecd5d337910816aa058c18398628e.zip
[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: Serge 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: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/utsname.h')
-rw-r--r--include/linux/utsname.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/utsname.h b/include/linux/utsname.h
index 13e1da0c538d..77e97a5755d9 100644
--- a/include/linux/utsname.h
+++ b/include/linux/utsname.h
@@ -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
OpenPOWER on IntegriCloud