Lines Matching refs:ns
169 void free_nsproxy(struct nsproxy *ns) in free_nsproxy() argument
171 if (ns->mnt_ns) in free_nsproxy()
172 put_mnt_ns(ns->mnt_ns); in free_nsproxy()
173 if (ns->uts_ns) in free_nsproxy()
174 put_uts_ns(ns->uts_ns); in free_nsproxy()
175 if (ns->ipc_ns) in free_nsproxy()
176 put_ipc_ns(ns->ipc_ns); in free_nsproxy()
177 if (ns->pid_ns) in free_nsproxy()
178 put_pid_ns(ns->pid_ns); in free_nsproxy()
179 put_net(ns->net_ns); in free_nsproxy()
180 kmem_cache_free(nsproxy_cachep, ns); in free_nsproxy()
214 struct nsproxy *ns; in switch_task_namespaces() local
218 ns = p->nsproxy; in switch_task_namespaces()
222 if (ns && atomic_dec_and_test(&ns->count)) { in switch_task_namespaces()
230 free_nsproxy(ns); in switch_task_namespaces()
264 err = ops->install(new_nsproxy, ei->ns); in SYSCALL_DEFINE2()