Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/namespaces/
H A Ducount.rs75 let uc = if let Some(uc) = counts.get(&key) { in alloc_ucounts() localVariable
78 uc.clone() in alloc_ucounts()
92 counts.insert(key, uc.clone()); in alloc_ucounts()
93 uc in alloc_ucounts()
103 let uc = self.alloc_ucounts(user_ns, uid); in inc_ucounts() localVariable
104 let mut uc_iter = Some(uc.clone()); in inc_ucounts()
118 return Some(uc); in inc_ucounts()
127 fn get_ucounts(uc: Arc<UCounts>) { in get_ucounts()
130 user_ns: uc.ns.clone(), in get_ucounts()
131 uid: uc.uid, in get_ucounts()
[all …]
H A Dmnt_namespace.rs199 pub fn dec_mnt_namespace(&self, uc: Arc<UCounts>) { in dec_mnt_namespace()
200 UCounts::dec_ucount(uc, super::ucount::Ucount::MntNamespaces) in dec_mnt_namespace()
H A Dpid_namespace.rs270 pub fn dec_pid_namespaces(&mut self, uc: Arc<UCounts>) { in dec_pid_namespaces()
271 UCounts::dec_ucount(uc, PidNamespaces) in dec_pid_namespaces()