Searched refs:PidNamespace (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/namespaces/ |
H A D | pid_namespace.rs | 30 pub struct PidNamespace { struct 37 parent: Option<Arc<PidNamespace>>, argument 48 impl Default for PidNamespace { argument 69 pub ns: Arc<PidNamespace>, 78 ns: Arc::new(PidNamespace::new()), in new() 89 pub fn alloc_pid(ns: Arc<PidNamespace>, set_tid: Vec<usize>) -> Result<PidStrcut, SystemError> { in alloc_pid() argument 137 pub fn ns_of_pid(&self) -> Arc<PidNamespace> { in ns_of_pid() argument 154 impl Namespace for PidNamespace { implementation 156 container_of!(Arc::as_ptr(&ns_common), PidNamespace, ns_common) in ns_common_to_ns() 162 let _pid_ns = PidNamespace::ns_common_to_ns(ns_common); in put() [all …]
|
H A D | mod.rs | 3 use pid_namespace::PidNamespace; 28 pub pid_namespace: Arc<PidNamespace>, 40 pid_namespace: Arc::new(PidNamespace::new()), in new() 44 pub fn set_pid_namespace(&mut self, new_pid_ns: Arc<PidNamespace>) { in set_pid_namespace() argument 61 Arc::new(PidNamespace::new().create_pid_namespace( in create_new_namespaces()
|