/DragonOS/kernel/src/libs/ |
H A D | rwlock.rs | 63 pub struct RwLockWriteGuard<'a, T: 'a> { struct 209 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write() 222 pub fn try_write_irqsave(&self) -> Option<RwLockWriteGuard<T>> { in try_write_irqsave() 238 fn inner_try_write(&self) -> Option<RwLockWriteGuard<T>> { in inner_try_write() 245 return Some(RwLockWriteGuard { in inner_try_write() 258 pub fn write(&self) -> RwLockWriteGuard<T> { in write() 270 pub fn write_irqsave(&self) -> RwLockWriteGuard<T> { in write_irqsave() 414 pub fn try_upgrade(mut self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() 428 Ok(RwLockWriteGuard { in try_upgrade() 441 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() [all …]
|
/DragonOS/docs/kernel/locking/ |
H A D | rwlock.md | 52 pub struct RwLockWriteGuard<'a, T: 'a> { 94 pub fn write(&self) -> RwLockWriteGuard<T> 98 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> 108 ### 3.2 WRITER守卫RwLockWriteGuard的主要API 120 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T>
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | mod.rs | 5 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 112 fn inner_write(&self) -> RwLockWriteGuard<InnerEFIManager> { in inner_write()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | hpet.rs | 26 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 176 fn inner_mut(&self) -> RwLockWriteGuard<InnerHpet> { in inner_mut() 200 ) -> Option<(RwLockWriteGuard<InnerHpet>, &mut HpetTimerRegisters)> { in timer_mut() 222 unsafe fn hpet_regs_mut(&self) -> (RwLockWriteGuard<InnerHpet>, &mut HpetRegisters) { in hpet_regs_mut()
|
H A D | rtc.rs | 31 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 225 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard}, 151 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 21 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 164 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | pt_device.rs | 26 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 218 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 19 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 166 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | i8042_device.rs | 18 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 169 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | i8042_driver.rs | 17 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 183 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | device.rs | 17 rwlock::{RwLock, RwLockWriteGuard}, 166 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | raw_device.rs | 16 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 224 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 14 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 174 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | kobject.rs | 18 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 56 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState>; in kobj_state_mut()
|
H A D | cpu.rs | 11 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 253 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 32 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 198 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | sysfs.rs | 25 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 236 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 21 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 250 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_core.rs | 16 rwlock::{RwLock, RwLockReadGuard, RwLockUpgradableGuard, RwLockWriteGuard}, 371 pub fn flags_write(&self) -> RwLockWriteGuard<'_, TtyFlag> { in flags_write() 381 pub fn termios_write(&self) -> RwLockWriteGuard<Termios> { in termios_write() 428 pub fn window_size_write(&self) -> RwLockWriteGuard<WindowSize> { in window_size_write()
|
H A D | tty_device.rs | 33 rwlock::{RwLock, RwLockWriteGuard}, 126 pub fn inner_write(&self) -> RwLockWriteGuard<InnerTtyDevice> { in inner_write() 494 ) -> crate::libs::rwlock::RwLockWriteGuard<crate::driver::base::kobject::KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 32 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 350 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut() 549 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_driver.rs | 32 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 206 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/process/ |
H A D | mod.rs | 43 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 846 pub fn basic_mut(&self) -> RwLockWriteGuard<ProcessBasicInfo> { in basic_mut() 880 pub fn kernel_stack_mut(&self) -> RwLockWriteGuard<KernelStack> { in kernel_stack_mut() 992 pub fn sig_info_mut(&self) -> RwLockWriteGuard<ProcessSignalInfo> { in sig_info_mut() 996 pub fn try_siginfo_mut(&self, times: u8) -> Option<RwLockWriteGuard<ProcessSignalInfo>> { in try_siginfo_mut() 1335 pub fn inner_lock_write_irqsave(&self) -> RwLockWriteGuard<InnerSchedInfo> { in inner_lock_write_irqsave()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 44 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 464 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut() 655 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|