Home
last modified time | relevance | path

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

12

/DragonOS-0.1.9/kernel/src/libs/
Drwlock.rs64 pub struct RwLockWriteGuard<'a, T: 'a> { struct
211 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write()
224 pub fn try_write_irqsave(&self) -> Option<RwLockWriteGuard<T>> { in try_write_irqsave()
240 fn inner_try_write(&self) -> Option<RwLockWriteGuard<T>> { in inner_try_write()
247 return Some(RwLockWriteGuard { in inner_try_write()
260 pub fn write(&self) -> RwLockWriteGuard<T> { in write()
272 pub fn write_irqsave(&self) -> RwLockWriteGuard<T> { in write_irqsave()
411 pub fn try_upgrade(mut self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade()
425 Ok(RwLockWriteGuard { in try_upgrade()
438 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade()
[all …]
Delf.rs37 use super::rwlock::RwLockWriteGuard;
119 user_vm_guard: &mut RwLockWriteGuard<'_, InnerAddressSpace>, in set_elf_brk()
199 user_vm_guard: &mut RwLockWriteGuard<'_, InnerAddressSpace>, in load_elf_segment()
/DragonOS-0.1.9/kernel/src/driver/virtio/
Dvirtio.rs9 use crate::libs::rwlock::RwLockWriteGuard;
73 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in virtio_device_search()
85 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_virtio_net_device()
/DragonOS-0.1.9/docs/kernel/locking/
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-0.1.9/kernel/src/arch/x86_64/driver/
Dhpet.rs27 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
168 fn inner_mut(&self) -> RwLockWriteGuard<InnerHpet> { in inner_mut()
192 ) -> Option<(RwLockWriteGuard<InnerHpet>, &mut HpetTimerRegisters)> { in timer_mut()
214 unsafe fn hpet_regs_mut(&self) -> (RwLockWriteGuard<InnerHpet>, &mut HpetRegisters) { in hpet_regs_mut()
/DragonOS-0.1.9/kernel/src/driver/input/serio/i8042/
Di8042_device.rs16 rwlock::{RwLockReadGuard, RwLockWriteGuard},
157 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
Di8042_ports.rs19 rwlock::{RwLockReadGuard, RwLockWriteGuard},
155 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
Di8042_driver.rs17 rwlock::{RwLockReadGuard, RwLockWriteGuard},
183 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/open_firmware/
Ddevice_node.rs7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard},
151 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/base/
Dcpu.rs11 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
242 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
Dkset.rs14 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
174 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
Dkobject.rs17 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
55 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState>; in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/
Dmod.rs14 use crate::libs::rwlock::RwLockWriteGuard;
52 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in ahci_device_search()
Dahcidisk.rs18 use crate::libs::rwlock::{RwLockReadGuard, RwLockWriteGuard};
464 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/base/platform/
Dplatform_device.rs21 rwlock::{RwLockReadGuard, RwLockWriteGuard},
255 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/
Dps_mouse_driver.rs31 rwlock::{RwLockReadGuard, RwLockWriteGuard},
205 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
Dps_mouse_device.rs38 rwlock::{RwLockReadGuard, RwLockWriteGuard},
566 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/
Dmod.rs28 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
304 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
517 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/process/
Dmod.rs40 rwlock::{RwLock, RwLockReadGuard, RwLockUpgradableGuard, RwLockWriteGuard},
731 pub fn basic_mut(&self) -> RwLockWriteGuard<ProcessBasicInfo> { in basic_mut()
761 pub fn kernel_stack_mut(&self) -> RwLockWriteGuard<KernelStack> { in kernel_stack_mut()
859 pub fn sig_info_mut(&self) -> RwLockWriteGuard<ProcessSignalInfo> { in sig_info_mut()
863 pub fn try_siginfo_mut(&self, times: u8) -> Option<RwLockWriteGuard<ProcessSignalInfo>> { in try_siginfo_mut()
1108 pub fn inner_lock_write_irqsave(&self) -> RwLockWriteGuard<InnerSchedInfo> { in inner_lock_write_irqsave()
/DragonOS-0.1.9/kernel/src/exception/
Dirqdata.rs8 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
119 pub fn chip_info_write_irqsave(&self) -> RwLockWriteGuard<InnerIrqChipInfo> { in chip_info_write_irqsave()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/
Dmod.rs24 rwlock::{RwLockReadGuard, RwLockWriteGuard},
175 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/
Dfbmem.rs37 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
321 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/driver/tty/
Dtty_core.rs12 rwlock::{RwLock, RwLockReadGuard, RwLockUpgradableGuard, RwLockWriteGuard},
353 pub fn termios_write(&self) -> RwLockWriteGuard<Termios> { in termios_write()
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/
De1000e_driver.rs331 ) -> crate::libs::rwlock::RwLockWriteGuard<crate::driver::base::kobject::KObjectState> { in kobj_state_mut()
/DragonOS-0.1.9/kernel/src/net/socket/
Dmod.rs24 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
440 pub fn shutdown_type_writer(&mut self) -> RwLockWriteGuard<ShutdownType> { in shutdown_type_writer()

12