• Home
  • Raw
  • Download

Lines Matching refs:ns

33 		struct ns_common *ns = inode->i_private;  in ns_prune_dentry()  local
34 atomic_long_set(&ns->stashed, 0); in ns_prune_dentry()
47 struct ns_common *ns = inode->i_private; in nsfs_evict() local
49 ns->ops->put(ns); in nsfs_evict()
52 static void *__ns_get_path(struct path *path, struct ns_common *ns) in __ns_get_path() argument
61 d = atomic_long_read(&ns->stashed); in __ns_get_path()
68 ns->ops->put(ns); in __ns_get_path()
77 ns->ops->put(ns); in __ns_get_path()
80 inode->i_ino = ns->inum; in __ns_get_path()
85 inode->i_private = ns; in __ns_get_path()
94 dentry->d_fsdata = (void *)ns->ops; in __ns_get_path()
95 d = atomic_long_cmpxchg(&ns->stashed, 0, (unsigned long)dentry); in __ns_get_path()
108 struct ns_common *ns; in ns_get_path() local
112 ns = ns_ops->get(task); in ns_get_path()
113 if (!ns) in ns_get_path()
116 ret = __ns_get_path(path, ns); in ns_get_path()
122 static int open_related_ns(struct ns_common *ns, in open_related_ns() argument
123 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns() argument
137 relative = get_ns(ns); in open_related_ns()
167 struct ns_common *ns = get_proc_ns(file_inode(filp)); in ns_ioctl() local
171 return open_related_ns(ns, ns_get_owner); in ns_ioctl()
173 if (!ns->ops->get_parent) in ns_ioctl()
175 return open_related_ns(ns, ns->ops->get_parent); in ns_ioctl()
184 struct ns_common *ns; in ns_get_name() local
186 ns = ns_ops->get(task); in ns_get_name()
187 if (ns) { in ns_get_name()
188 res = snprintf(buf, size, "%s:[%u]", ns_ops->name, ns->inum); in ns_get_name()
189 ns_ops->put(ns); in ns_get_name()