| #include <linux/nsproxy.h> |
| extern struct uts_namespace init_uts_ns; |
| static inline void get_uts_ns(struct uts_namespace *ns) |
| extern struct uts_namespace *copy_utsname(unsigned long flags, |
| struct uts_namespace *ns); |
| extern void free_uts_ns(struct kref *kref); |
| static inline void put_uts_ns(struct uts_namespace *ns) |
| kref_put(&ns->kref, free_uts_ns); |
| static inline void get_uts_ns(struct uts_namespace *ns) |
| static inline void put_uts_ns(struct uts_namespace *ns) |
| static inline struct uts_namespace *copy_utsname(unsigned long flags, |
| struct uts_namespace *ns) |
| if (flags & CLONE_NEWUTS) |
| static inline struct new_utsname *utsname(void) |
| return ¤t->nsproxy->uts_ns->name; |
| static inline struct new_utsname *init_utsname(void) |
| return &init_uts_ns.name; |
| extern struct rw_semaphore uts_sem; |
| #endif /* _LINUX_UTSNAME_H */ |