Home
last modified time | relevance | path

Searched refs:RwLockWriteGuard (Results 1 – 25 of 44) sorted by relevance

12

/DragonOS/kernel/src/libs/
H A Drwlock.rs63 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 Drwlock.md52 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 Dmod.rs5 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
112 fn inner_write(&self) -> RwLockWriteGuard<InnerEFIManager> { in inner_write()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dhpet.rs26 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 Drtc.rs31 rwlock::{RwLockReadGuard, RwLockWriteGuard},
225 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard},
151 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs21 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
164 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Dpt_device.rs26 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 Di8042_ports.rs19 rwlock::{RwLockReadGuard, RwLockWriteGuard},
166 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Di8042_device.rs18 rwlock::{RwLockReadGuard, RwLockWriteGuard},
169 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Di8042_driver.rs17 rwlock::{RwLockReadGuard, RwLockWriteGuard},
183 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs17 rwlock::{RwLock, RwLockWriteGuard},
166 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Draw_device.rs16 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
224 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/base/
H A Dkset.rs14 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
174 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Dkobject.rs18 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
56 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState>; in kobj_state_mut()
H A Dcpu.rs11 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
253 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs32 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
198 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Dsysfs.rs25 rwlock::{RwLockReadGuard, RwLockWriteGuard},
236 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs21 rwlock::{RwLockReadGuard, RwLockWriteGuard},
250 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs16 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 Dtty_device.rs33 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 Dmod.rs32 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 Dps_mouse_driver.rs32 rwlock::{RwLockReadGuard, RwLockWriteGuard},
206 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS/kernel/src/process/
H A Dmod.rs43 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 Dvirtio_blk.rs44 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()

12