/DragonOS/kernel/src/libs/ |
H A D | rwlock.rs | 45 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 D | rwlock.md | 36 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 D | mod.rs | 5 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 108 fn inner_read(&self) -> RwLockReadGuard<InnerEFIManager> { in inner_read()
|
/DragonOS/kernel/src/driver/video/ |
H A D | mod.rs | 9 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 D | net_core.rs | 8 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 D | hpet.rs | 26 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 D | rtc.rs | 31 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 221 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 14 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 D | subsys.rs | 8 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 D | cpu.rs | 11 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 240 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
H A D | kobject.rs | 18 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 54 fn kobj_state(&self) -> RwLockReadGuard<KObjectState>; in kobj_state()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard}, 147 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 21 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 160 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
H A D | pt_device.rs | 26 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 188 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 19 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 162 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
H A D | i8042_device.rs | 18 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 165 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
H A D | i8042_driver.rs | 17 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 179 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | raw_device.rs | 16 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 196 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 32 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 194 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
H A D | sysfs.rs | 25 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 231 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdata.rs | 8 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 D | platform_device.rs | 21 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 242 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/process/ |
H A D | mod.rs | 43 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 D | ps_mouse_driver.rs | 32 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 202 fn kobj_state(&self) -> RwLockReadGuard<KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 29 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()
|