Searched refs:UCounts (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/namespaces/ |
H A D | ucount.rs | 39 pub struct UCounts { struct 49 impl Default for UCounts { argument 54 impl UCounts { implementation 101 ) -> Option<Arc<UCounts>> { in inc_ucounts() argument 121 fn find_ucounts(user_ns: Arc<UserNamespace>, uid: usize) -> Option<Arc<UCounts>> { in find_ucounts() argument 127 fn get_ucounts(uc: Arc<UCounts>) { in get_ucounts() argument 136 pub fn dec_ucount(uc: Arc<UCounts>, ucount_type: Ucount) { in dec_ucount() argument 149 fn put_ucounts(uc: Arc<UCounts>) { in put_ucounts() argument 178 counts: Mutex<HashMap<UKey, Arc<UCounts>>>,
|
H A D | mnt_namespace.rs | 16 use super::{namespace::NsCommon, ucount::UCounts, user_namespace::UserNamespace}; 36 ucounts: Arc<UCounts>, 150 ucounts: Arc::new(UCounts::new()), in new() 193 ) -> Result<Option<Arc<UCounts>>, SystemError> { in inc_mnt_namespace() argument 199 pub fn dec_mnt_namespace(&self, uc: Arc<UCounts>) { in dec_mnt_namespace() argument 200 UCounts::dec_ucount(uc, super::ucount::Ucount::MntNamespaces) in dec_mnt_namespace()
|
H A D | pid_namespace.rs | 7 use super::{namespace::NsCommon, ucount::UCounts, user_namespace::UserNamespace}; 39 ucounts: Arc<UCounts>, 221 ucounts: Arc::new(UCounts::new()), in new() 264 ) -> Result<Option<Arc<UCounts>>, SystemError> { in inc_pid_namespaces() argument 270 pub fn dec_pid_namespaces(&mut self, uc: Arc<UCounts>) { in dec_pid_namespaces() argument 271 UCounts::dec_ucount(uc, PidNamespaces) in dec_pid_namespaces()
|
H A D | user_namespace.rs | 13 use crate::namespaces::ucount::UCounts; 52 pub ucounts: Option<Arc<UCounts>>,
|