Skip to content

Commit

Permalink
[PATCH] namespaces: utsname: introduce temporary helpers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Serge E. Hallyn authored and Linus Torvalds committed Oct 2, 2006
1 parent fab413a commit 0bdd7aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/linux/utsname.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0bdd7aa

Please sign in to comment.