/DragonOS/kernel/src/libs/ |
H A D | rwlock.rs | 64 pub struct RwLockWriteGuard<'a, T: 'a> { struct 210 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write() 223 pub fn try_write_irqsave(&self) -> Option<RwLockWriteGuard<T>> { in try_write_irqsave() 239 fn inner_try_write(&self) -> Option<RwLockWriteGuard<T>> { in inner_try_write() 246 return Some(RwLockWriteGuard { in inner_try_write() 259 pub fn write(&self) -> RwLockWriteGuard<T> { in write() 271 pub fn write_irqsave(&self) -> RwLockWriteGuard<T> { in write_irqsave() 415 pub fn try_upgrade(mut self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() 429 Ok(RwLockWriteGuard { in try_upgrade() 442 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/virtio/ |
H A D | virtio.rs | 14 use crate::libs::rwlock::RwLockWriteGuard; 91 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in virtio_device_search()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | mod.rs | 18 use crate::libs::rwlock::RwLockWriteGuard; 40 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in ahci_device_search()
|
/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}, 192 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::RwLockWriteGuard, 159 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
H A D | raw_device.rs | 16 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 200 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/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/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/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()
|
/DragonOS/kernel/src/process/ |
H A D | mod.rs | 43 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 843 pub fn basic_mut(&self) -> RwLockWriteGuard<ProcessBasicInfo> { in basic_mut() 877 pub fn kernel_stack_mut(&self) -> RwLockWriteGuard<KernelStack> { in kernel_stack_mut() 989 pub fn sig_info_mut(&self) -> RwLockWriteGuard<ProcessSignalInfo> { in sig_info_mut() 993 pub fn try_siginfo_mut(&self, times: u8) -> Option<RwLockWriteGuard<ProcessSignalInfo>> { in try_siginfo_mut() 1332 pub fn inner_lock_write_irqsave(&self) -> RwLockWriteGuard<InnerSchedInfo> { in inner_lock_write_irqsave()
|