Home
last modified time | relevance | path

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

/DragonOS/kernel/src/namespaces/
H A Duser_namespace.rs12 use crate::namespaces::namespace::NsCommon;
49 ns_common: Arc<NsCommon>,
76 fn get(&self, pid: Pid) -> Option<Arc<NsCommon>> { in get() argument
79 fn get_parent(&self, ns_common: Arc<NsCommon>) -> Result<Arc<NsCommon>, SystemError> { in get_parent() argument
85 ns_common: Arc<NsCommon>, in install() argument
89 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace> { in owner()
92 fn put(&self, ns_common: Arc<NsCommon>) { in put() argument
126 ns_common: Arc::new(NsCommon::new(Box::new(UserNsOperations::new( in new()
H A Dnamespace.rs19 fn get(&self, pid: Pid) -> Option<Arc<NsCommon>>; in get() argument
20 fn put(&self, ns_common: Arc<NsCommon>); in put() argument
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() argument
26 pub struct NsCommon { struct
31 impl NsCommon { implementation
53 fn ns_common_to_ns(ns_common: Arc<NsCommon>) -> Arc<Self>; in ns_common_to_ns()
H A Dmnt_namespace.rs16 use super::{namespace::NsCommon, ucount::UCounts, user_namespace::UserNamespace};
32 ns_common: Arc<NsCommon>,
93 fn ns_common_to_ns(ns_common: Arc<NsCommon>) -> Arc<Self> { in ns_common_to_ns()
109 fn get(&self, pid: crate::process::Pid) -> Option<Arc<NsCommon>> { in get() argument
114 fn get_parent(&self, _ns_common: Arc<NsCommon>) -> Result<Arc<NsCommon>, SystemError> { in get_parent() argument
120 ns_common: Arc<NsCommon>, in install() argument
133 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace> { in owner()
137 fn put(&self, ns_common: Arc<NsCommon>) { in put() argument
143 let ns_common = Arc::new(NsCommon::new(Box::new(MntNsOperations::new( in new()
170 let ns_common = Arc::new(NsCommon::new(Box::new(MntNsOperations::new( in create_mnt_namespace()
H A Dpid_namespace.rs7 use super::{namespace::NsCommon, ucount::UCounts, user_namespace::UserNamespace};
45 pub ns_common: Arc<NsCommon>,
155 fn ns_common_to_ns(ns_common: Arc<NsCommon>) -> Arc<Self> { in ns_common_to_ns()
161 fn put(&self, ns_common: Arc<NsCommon>) { in put() argument
166 fn owner(&self, ns_common: Arc<NsCommon>) -> Arc<UserNamespace> { in owner()
171 fn get_parent(&self, ns_common: Arc<NsCommon>) -> Result<Arc<NsCommon>, SystemError> { in get_parent() argument
186 fn get(&self, pid: Pid) -> Option<Arc<NsCommon>> { in get() argument
190 fn install(&self, nsset: &mut NsSet, ns_common: Arc<NsCommon>) -> Result<(), SystemError> { 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()