Skip to contentSkip to conversation

uts namespaces: introduce temporary helpers

PATCH In review Serge E. Hallyn 1 participant 1 message May 10, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 3/9 uts namespaces: introduce temporary helpers

In reply to a message not in the archive

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.

---

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

227bebceeec2a4dcb495bbc0898cbb8af9aa2fb8

include/linux/utsname.h +8 -0
index 13e1da0..8f0decf 100644
@@ -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
Signature · 1 line
1.3.0