Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs42 pub struct RwLockReadGuard<'a, T: 'a> { struct
115 pub fn try_read(&self) -> Option<RwLockReadGuard<T>> { in try_read()
124 fn inner_try_read(&self) -> Option<RwLockReadGuard<T>> { in inner_try_read()
141 return Some(RwLockReadGuard { in inner_try_read()
151 pub fn read(&self) -> RwLockReadGuard<T> { in read()
294 impl<'rwlock, T> RwLockReadGuard<'rwlock, T> { impl
355 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
365 RwLockReadGuard { in downgrade()
408 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
418 return RwLockReadGuard { in downgrade()
[all …]
/DragonOS-0.1.8/docs/kernel/locking/
Drwlock.md36 pub struct RwLockReadGuard<'a, T: 'a> {
86 pub fn read(&self) -> RwLockReadGuard<T>
90 pub fn try_read(&self) -> Option<RwLockReadGuard<T>>
111 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
124 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs7 libs::rwlock::RwLockReadGuard,
120 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDriver>>> = NET_DRIVERS.read(); in poll_ifaces()
140 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDriver>>> = NET_DRIVERS.read(); in poll_ifaces_try_lock()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs7 use crate::libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
84 pub fn read(&self) -> RwLockReadGuard<LinkedList<Box<dyn PciDeviceStructure>>> { in read()
130 list: &'a mut RwLockReadGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_pci_device_structure()