Lines Matching full:arc
11 sync::{Arc, Mutex},
25 contexts: KVVec<Arc<Context>>,
28 pub(crate) fn get_all_contexts() -> Result<KVVec<Arc<Context>>> { in get_all_contexts()
42 all_procs: KVVec<Arc<Process>>,
54 pub(crate) fn new(name: &CStr) -> Result<Arc<Self>> { in new()
56 let ctx = Arc::pin_init( in new()
76 pub(crate) fn deregister(self: &Arc<Self>) { in deregister()
78 CONTEXTS.lock().contexts.retain(|c| !Arc::ptr_eq(c, self)); in deregister()
81 pub(crate) fn register_process(self: &Arc<Self>, proc: Arc<Process>) -> Result { in register_process()
82 if !Arc::ptr_eq(self, &proc.ctx) { in register_process()
90 pub(crate) fn deregister_process(self: &Arc<Self>, proc: &Arc<Process>) { in deregister_process()
91 if !Arc::ptr_eq(self, &proc.ctx) { in deregister_process()
96 manager.all_procs.retain(|p| !Arc::ptr_eq(p, proc)); in deregister_process()
145 pub(crate) fn get_all_procs(&self) -> Result<KVVec<Arc<Process>>> { in get_all_procs()
149 procs.push(Arc::clone(proc), GFP_KERNEL)?; in get_all_procs()
154 pub(crate) fn get_procs_with_pid(&self, pid: i32) -> Result<KVVec<Arc<Process>>> { in get_procs_with_pid()
159 matching_procs.push(Arc::clone(proc), GFP_KERNEL)?; in get_procs_with_pid()