OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/7] uts namespaces: introduce temporary helpers
[PATCH 1/7] uts namespaces: introduce temporary helpers [message #2509] Sat, 08 April 2006 04:52
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 | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

e7caad5beb76680b9a73b9ea67a85f588dc76aad
diff --git a/include/linux/utsname.h b/include/linux/utsname.h
index 13e1da0..8f0decf 100644
--- a/include/linux/utsname.h
+++ b/include/linux/utsname.h
@@ -32,5 +32,13 @@ 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.2.4
Previous Topic: [PATCH 2/7] uts namespaces: switch to using uts namespaces
Next Topic: [PATCH 5/7] uts namespaces: sysctl hack
Goto Forum:
  


Current Time: Tue Jul 16 02:57:37 GMT 2024

Total time taken to generate the page: 0.02640 seconds