/DragonOS/kernel/src/libs/ |
H A D | rwlock.rs | 393 impl<'rwlock, T> RwLockReadGuard<'rwlock, T> { 404 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() 410 impl<'rwlock, T> RwLockUpgradableGuard<'rwlock, T> { 414 pub fn try_upgrade(mut self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() argument 441 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() argument 455 pub fn downgrade(mut self) -> RwLockReadGuard<'rwlock, T> { in downgrade() argument 482 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() 489 impl<'rwlock, T> RwLockWriteGuard<'rwlock, T> { 500 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() 509 pub fn downgrade(mut self) -> RwLockReadGuard<'rwlock, T> { in downgrade() argument [all …]
|
H A D | mod.rs | 18 pub mod rwlock; module
|
H A D | notifier.rs | 4 use crate::libs::{rwlock::RwLock, spinlock::SpinLock};
|
/DragonOS/docs/kernel/locking/ |
H A D | index.rst | 13 rwlock
|
H A D | rwlock.md | 111 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/kernel/src/init/ |
H A D | mod.rs | 1 use crate::libs::rwlock::RwLock;
|
/DragonOS/kernel/src/driver/pci/ |
H A D | device.rs | 17 rwlock::{RwLock, RwLockWriteGuard}, 162 ) -> crate::libs::rwlock::RwLockReadGuard<crate::driver::base::kobject::KObjectState> { in kobj_state()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | mod.rs | 5 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | irq.rs | 14 libs::rwlock::RwLock,
|
/DragonOS/kernel/src/driver/video/ |
H A D | mod.rs | 9 rwlock::{RwLock, RwLockReadGuard}, 94 let mut frame_buffer_info_guard: crate::libs::rwlock::RwLockWriteGuard<ScmBufferInfo> = in init_frame_buffer()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | mod.rs | 7 libs::rwlock::RwLock,
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | verifier.rs | 8 use crate::libs::rwlock::RwLock;
|
/DragonOS/kernel/src/namespaces/ |
H A D | user_namespace.rs | 5 use crate::libs::rwlock::RwLock;
|
/DragonOS/kernel/src/net/ |
H A D | mod.rs | 8 use crate::{driver::net::NetDevice, libs::rwlock::RwLock};
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.8.md | 73 - bugfix: 修正rwlock有的地方由于未使用ManuallyDrop导致的use after free问题 (#329) 177 … 修正rwlock有的地方由于未使用ManuallyDrop导致的use after free && spinlock守卫新增leak,spinlock新增force unlock功能.(#329) 179 1.修正rwlock有的地方由于未使用ManuallyDrop导致的use after free
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_driver.rs | 30 rwlock::RwLock, 420 ) -> crate::libs::rwlock::RwLockReadGuard<crate::driver::base::kobject::KObjectState> { in kobj_state() 426 ) -> crate::libs::rwlock::RwLockWriteGuard<crate::driver::base::kobject::KObjectState> { in kobj_state_mut()
|
H A D | tty_device.rs | 33 rwlock::{RwLock, RwLockWriteGuard}, 488 ) -> crate::libs::rwlock::RwLockReadGuard<crate::driver::base::kobject::KObjectState> { in kobj_state() 494 ) -> crate::libs::rwlock::RwLockWriteGuard<crate::driver::base::kobject::KObjectState> { in kobj_state_mut()
|
/DragonOS/kernel/src/debug/kprobe/ |
H A D | mod.rs | 2 use crate::libs::rwlock::RwLock;
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 7 libs::rwlock::{RwLockReadGuard, RwLockWriteGuard},
|
H A D | fdt.rs | 12 libs::rwlock::RwLock, 401 let global_data_guard: crate::libs::rwlock::RwLockReadGuard<'_, FdtGlobalData> = in reserved_mem_reserve_reg()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 21 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
|
H A D | pt_device.rs | 26 libs::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard},
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 19 rwlock::{RwLockReadGuard, RwLockWriteGuard},
|
H A D | i8042_device.rs | 18 rwlock::{RwLockReadGuard, RwLockWriteGuard},
|
H A D | i8042_driver.rs | 17 rwlock::{RwLockReadGuard, RwLockWriteGuard},
|