Home
last modified time | relevance | path

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

12

/DragonOS/kernel/src/libs/
H A Drwlock.rs64 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 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/virtio/
H A Dvirtio.rs14 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 Dmod.rs18 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 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},
192 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::RwLockWriteGuard,
159 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
H A Draw_device.rs16 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
200 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/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/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/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()
/DragonOS/kernel/src/process/
H A Dmod.rs43 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()

12