Home
last modified time | relevance | path

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

12

/DragonOS/kernel/src/libs/
H A Drwlock.rs45 pub struct RwLockReadGuard<'a, T: 'a> { struct
121 pub fn try_read(&self) -> Option<RwLockReadGuard<T>> { in try_read()
130 fn inner_try_read(&self) -> Option<RwLockReadGuard<T>> { in inner_try_read()
146 return Some(RwLockReadGuard { in inner_try_read()
157 pub fn read(&self) -> RwLockReadGuard<T> { in read()
167 pub fn read_irqsave(&self) -> RwLockReadGuard<T> { in read_irqsave()
181 pub fn try_read_irqsave(&self) -> Option<RwLockReadGuard<T>> { in try_read_irqsave()
394 impl<'rwlock, T> RwLockReadGuard<'rwlock, T> { implementation
456 pub fn downgrade(mut self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
466 RwLockReadGuard { in downgrade()
[all …]
/DragonOS/docs/kernel/locking/
H A 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/kernel/src/driver/firmware/efi/
H A Dmod.rs5 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
108 fn inner_read(&self) -> RwLockReadGuard<InnerEFIManager> { in inner_read()
/DragonOS/kernel/src/driver/video/
H A Dmod.rs9 rwlock::{RwLock, RwLockReadGuard},
138 pub fn refresh_target(&self) -> RwLockReadGuard<'_, Option<Arc<SpinLock<Box<[u8]>>>>> { in refresh_target()
144 pub fn device_buffer(&self) -> RwLockReadGuard<'_, ScmBufferInfo> { in device_buffer()
244 let mut refresh_target: Option<RwLockReadGuard<'_, Option<Arc<SpinLock<Box<[u8]>>>>>> = in run()
/DragonOS/kernel/src/net/
H A Dnet_core.rs8 libs::rwlock::RwLockReadGuard,
127 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDevice>>> = NET_DEVICES.read_irqsave(); in poll_ifaces()
147 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDevice>>> = in poll_ifaces_try_lock()
178 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDevice>>> = NET_DEVICES.read_irqsave(); in poll_ifaces_try_lock_onetime()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dhpet.rs26 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
172 fn inner(&self) -> RwLockReadGuard<InnerHpet> { in inner()
181 fn timer(&self, index: u8) -> Option<(RwLockReadGuard<InnerHpet>, &HpetTimerRegisters)> { in timer()
216 unsafe fn hpet_regs(&self) -> (RwLockReadGuard<InnerHpet>, &HpetRegisters) { in hpet_regs()
H A Drtc.rs31 rwlock::{RwLockReadGuard, RwLockWriteGuard},
221 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/driver/base/
H A Dkset.rs14 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
144 pub fn kobjects(&self) -> RwLockReadGuard<Vec<Weak<dyn KObject>>> { in kobjects()
170 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
H A Dsubsys.rs8 rwlock::{RwLock, RwLockReadGuard},
120 pub fn devices(&self) -> RwLockReadGuard<Vec<Arc<dyn Device>>> { in devices()
124 pub fn drivers(&self) -> RwLockReadGuard<Vec<Arc<dyn Driver>>> { in drivers()
H A Dcpu.rs11 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
240 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
H A Dkobject.rs18 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
54 fn kobj_state(&self) -> RwLockReadGuard<KObjectState>; in kobj_state()
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard},
147 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs21 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
160 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
H A Dpt_device.rs26 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
188 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs19 rwlock::{RwLockReadGuard, RwLockWriteGuard},
162 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
H A Di8042_device.rs18 rwlock::{RwLockReadGuard, RwLockWriteGuard},
165 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
H A Di8042_driver.rs17 rwlock::{RwLockReadGuard, RwLockWriteGuard},
179 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/driver/pci/
H A Draw_device.rs16 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
196 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs32 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
194 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
H A Dsysfs.rs25 rwlock::{RwLockReadGuard, RwLockWriteGuard},
231 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/exception/
H A Dirqdata.rs8 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
125 pub fn chip_info_read(&self) -> RwLockReadGuard<InnerIrqChipInfo> { in chip_info_read()
129 pub fn chip_info_read_irqsave(&self) -> RwLockReadGuard<InnerIrqChipInfo> { in chip_info_read_irqsave()
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs21 rwlock::{RwLockReadGuard, RwLockWriteGuard},
242 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/process/
H A Dmod.rs43 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
818 pub fn basic(&self) -> RwLockReadGuard<ProcessBasicInfo> { in basic()
852 pub fn kernel_stack(&self) -> RwLockReadGuard<KernelStack> { in kernel_stack()
950 pub fn sig_info_irqsave(&self) -> RwLockReadGuard<ProcessSignalInfo> { in sig_info_irqsave()
954 pub fn try_siginfo_irqsave(&self, times: u8) -> Option<RwLockReadGuard<ProcessSignalInfo>> { in try_siginfo_irqsave()
1005 pub fn get_robust_list(&self) -> RwLockReadGuard<Option<RobustListHead>> { in get_robust_list()
1295 pub fn inner_lock_read_irqsave(&self) -> RwLockReadGuard<InnerSchedInfo> { in inner_lock_read_irqsave()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs32 rwlock::{RwLockReadGuard, RwLockWriteGuard},
202 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs29 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
306 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
509 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()

12