Home
last modified time | relevance | path

Searched refs:rwlock (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.7/kernel/src/libs/
Drwlock.rs260 impl<'rwlock, T> RwLockReadGuard<'rwlock, T> {
264 pub fn leak(this: Self) -> &'rwlock T { in leak()
270 impl<'rwlock, T> RwLockUpgradableGuard<'rwlock, T> {
274 pub fn try_upgrade(self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() argument
300 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() argument
314 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade() argument
333 pub fn leak(this: Self) -> &'rwlock T { in leak()
340 impl<'rwlock, T> RwLockWriteGuard<'rwlock, T> {
344 pub fn leak(this: Self) -> &'rwlock T { in leak()
353 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade() argument
[all …]
Dmod.rs11 pub mod rwlock; module
/DragonOS-0.1.7/docs/kernel/locking/
Dindex.rst14 rwlock
Drwlock.md111 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
115 pub fn downgrade_to_upgradeable(self) -> RwLockUpgradableGuard<'rwlock, T>
120 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T>
124 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
/DragonOS-0.1.7/kernel/src/driver/virtio/
Dvirtio.rs8 use crate::libs::rwlock::RwLockWriteGuard;
/DragonOS-0.1.7/kernel/src/net/
Dnet_core.rs7 libs::rwlock::RwLockReadGuard,
Dmod.rs8 use crate::{driver::net::NetDriver, kwarn, libs::rwlock::RwLock, syscall::SystemError};
/DragonOS-0.1.7/kernel/src/driver/tty/
Dmod.rs8 use crate::libs::rwlock::RwLock;
Dtty_device.rs14 libs::rwlock::RwLock,
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs12 libs::{keyboard_parser::TypeOneFSM, rwlock::RwLock, spinlock::SpinLock},
/DragonOS-0.1.7/kernel/src/exception/
Dsoftirq.rs22 libs::rwlock::RwLock,
/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.rs8 use crate::libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};