Lines Matching refs:ns_common
45 pub ns_common: Arc<NsCommon>, field
155 fn ns_common_to_ns(ns_common: Arc<NsCommon>) -> Arc<Self> { in ns_common_to_ns()
156 container_of!(Arc::as_ptr(&ns_common), PidNamespace, ns_common) in ns_common_to_ns()
161 fn put(&self, ns_common: Arc<NsCommon>) { in put()
162 let _pid_ns = PidNamespace::ns_common_to_ns(ns_common); in put()
166 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace> { in owner()
167 let pid_ns = PidNamespace::ns_common_to_ns(ns_common); in owner()
171 fn get_parent(&self, ns_common: Arc<NsCommon>) -> Result<Arc<NsCommon>, SystemError> { in get_parent()
175 let mut pid_ns = &PidNamespace::ns_common_to_ns(ns_common).parent; in get_parent()
179 return Ok(ns.ns_common.clone()); in get_parent()
188 pcb.map(|pcb| pcb.get_nsproxy().read().pid_namespace.ns_common.clone()) in get()
190 fn install(&self, nsset: &mut NsSet, ns_common: Arc<NsCommon>) -> Result<(), SystemError> { in install()
195 let mut pid_ns = PidNamespace::ns_common_to_ns(ns_common); in install()
223 ns_common: Arc::new(NsCommon::new(Box::new(PidNsOperations::new( in new()
245 let ns_common = Arc::new(NsCommon::new(Box::new(PidNsOperations::new( in create_pid_namespace() localVariable
256 ns_common, in create_pid_namespace()