OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 3/9] namespaces: utsname: introduce temporary helpers
[PATCH 3/9] namespaces: utsname: introduce temporary helpers [message #3246] Thu, 18 May 2006 15:49
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
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>

---

include/linux/utsname.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

f409a5279295edf372d670452fd84199fd6ba7e5
diff --git a/include/linux/utsname.h b/include/linux/utsname.h
index 13e1da0..77e97a5 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
--
1.1.6
Previous Topic: [PATCH 2/9] namespaces: incorporate fs namespace into nsproxy
Next Topic: [PATCH 5/9] namespaces: utsname: use init_utsname when appropriate
Goto Forum:
  


Current Time: Sat Jun 21 15:10:57 GMT 2025

Total time taken to generate the page: 0.08109 seconds