Home
last modified time | relevance | path

Searched refs:ns_common (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/namespaces/
H A Dmnt_namespace.rs32 ns_common: Arc<NsCommon>, field
93 fn ns_common_to_ns(ns_common: Arc<NsCommon>) -> Arc<Self> { in ns_common_to_ns()
94 let ns_common_ptr = Arc::as_ptr(&ns_common); in ns_common_to_ns()
95 container_of!(ns_common_ptr, MntNamespace, ns_common) in ns_common_to_ns()
111 pcb.map(|pcb| pcb.get_nsproxy().read().mnt_namespace.ns_common.clone()) in get()
120 ns_common: Arc<NsCommon>, in install()
123 let mnt_ns = MntNamespace::ns_common_to_ns(ns_common); in install()
133 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace> { in owner()
134 let mnt_ns = MntNamespace::ns_common_to_ns(ns_common); in owner()
137 fn put(&self, ns_common: Arc<NsCommon>) { in put()
[all …]
H A Dpid_namespace.rs45 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()
[all …]
H A Duser_namespace.rs49 ns_common: Arc<NsCommon>, field
79 fn get_parent(&self, ns_common: Arc<NsCommon>) -> Result<Arc<NsCommon>, SystemError> { in get_parent()
85 ns_common: Arc<NsCommon>, in install()
89 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace> { in owner()
92 fn put(&self, ns_common: Arc<NsCommon>) { in put()
126 ns_common: Arc::new(NsCommon::new(Box::new(UserNsOperations::new( in new()
H A Dnamespace.rs20 fn put(&self, ns_common: Arc<NsCommon>); in put()
21 fn install(&self, nsset: &mut NsSet, ns_common: Arc<NsCommon>) -> Result<(), SystemError>; in install()
22 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace>; in owner()
23 fn get_parent(&self, ns_common: Arc<NsCommon>) -> Result<Arc<NsCommon>, SystemError>; in get_parent()
53 fn ns_common_to_ns(ns_common: Arc<NsCommon>) -> Arc<Self>; in ns_common_to_ns()