Searched refs:RwLockWriteGuard (Results 1 – 6 of 6) sorted by relevance
/DragonOS-0.1.8/kernel/src/libs/ |
D | rwlock.rs | 59 pub struct RwLockWriteGuard<'a, T: 'a> { struct 179 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write() 191 fn inner_try_write(&self) -> Option<RwLockWriteGuard<T>> { in inner_try_write() 198 return Some(RwLockWriteGuard { in inner_try_write() 210 pub fn write(&self) -> RwLockWriteGuard<T> { in write() 315 pub fn try_upgrade(self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() 329 Ok(RwLockWriteGuard { in try_upgrade() 341 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() 388 impl<'rwlock, T> RwLockWriteGuard<'rwlock, T> { implementation 462 impl<'rwlock, T> Deref for RwLockWriteGuard<'rwlock, T> { implementation [all …]
|
D | elf.rs | 32 use super::rwlock::RwLockWriteGuard; 89 user_vm_guard: &mut RwLockWriteGuard<'_, InnerAddressSpace>, in set_elf_brk() 165 user_vm_guard: &mut RwLockWriteGuard<'_, InnerAddressSpace>, in load_elf_segment()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | virtio.rs | 8 use crate::libs::rwlock::RwLockWriteGuard; 75 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in virtio_device_search() 87 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_virtio_net_device()
|
/DragonOS-0.1.8/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.8/kernel/src/driver/pci/ |
D | pci.rs | 7 use crate::libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}; 89 pub fn write(&self) -> RwLockWriteGuard<LinkedList<Box<dyn PciDeviceStructure>>> { in write() 111 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_pci_device_structure_mut()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | ucontext.rs | 23 rwlock::{RwLock, RwLockWriteGuard}, 1278 vm: &mut RwLockWriteGuard<InnerAddressSpace>, in extend()
|