/DragonOS-0.1.9/kernel/src/libs/ |
D | rwlock.rs | 64 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 …]
|
D | elf.rs | 37 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/ |
D | virtio.rs | 9 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/ |
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-0.1.9/kernel/src/arch/x86_64/driver/ |
D | hpet.rs | 27 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/ |
D | i8042_device.rs | 16 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 157 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
D | i8042_ports.rs | 19 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 155 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
D | i8042_driver.rs | 17 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 183 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS-0.1.9/kernel/src/driver/open_firmware/ |
D | device_node.rs | 7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard}, 151 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS-0.1.9/kernel/src/driver/base/ |
D | cpu.rs | 11 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 242 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
D | kset.rs | 14 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 174 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
D | kobject.rs | 17 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/ |
D | mod.rs | 14 use crate::libs::rwlock::RwLockWriteGuard; 52 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in ahci_device_search()
|
D | ahcidisk.rs | 18 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/ |
D | platform_device.rs | 21 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/ |
D | ps_mouse_driver.rs | 31 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 205 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
D | ps_mouse_device.rs | 38 rwlock::{RwLockReadGuard, RwLockWriteGuard}, 566 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/ |
D | mod.rs | 28 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/ |
D | mod.rs | 40 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/ |
D | irqdata.rs | 8 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/ |
D | mod.rs | 24 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/ |
D | fbmem.rs | 37 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 321 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState> { in kobj_state_mut()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | tty_core.rs | 12 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/ |
D | e1000e_driver.rs | 331 ) -> crate::libs::rwlock::RwLockWriteGuard<crate::driver::base::kobject::KObjectState> { in kobj_state_mut()
|
/DragonOS-0.1.9/kernel/src/net/socket/ |
D | mod.rs | 24 rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}, 440 pub fn shutdown_type_writer(&mut self) -> RwLockWriteGuard<ShutdownType> { in shutdown_type_writer()
|