| #include <linux/nsproxy.h> |
| extern struct uts_namespace init_uts_ns; |
| static inline void get_uts_ns(struct uts_namespace *ns) |
| extern int unshare_utsname(unsigned long unshare_flags, |
| struct uts_namespace **new_uts); |
| extern int copy_utsname(int flags, struct task_struct *tsk); |
| 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 int unshare_utsname(unsigned long unshare_flags, |
| struct uts_namespace **new_uts) |
| if (unshare_flags & CLONE_NEWUTS) |
| static inline int copy_utsname(int flags, struct task_struct *tsk) |
| static inline void put_uts_ns(struct uts_namespace *ns) |
| 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 */ |