/DragonOS/kernel/src/libs/ |
H A D | rwlock.rs | 394 impl<'rwlock, T> RwLockReadGuard<'rwlock, T> { 405 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() 411 impl<'rwlock, T> RwLockUpgradableGuard<'rwlock, T> { 415 pub fn try_upgrade(mut self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() argument 442 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() argument 456 pub fn downgrade(mut self) -> RwLockReadGuard<'rwlock, T> { in downgrade() argument 483 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() 490 impl<'rwlock, T> RwLockWriteGuard<'rwlock, T> { 501 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() 510 pub fn downgrade(mut self) -> RwLockReadGuard<'rwlock, T> { in downgrade() argument [all …]
|
H A D | mod.rs | 18 pub mod rwlock; module
|
/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::RwLockWriteGuard, 155 ) -> 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,
|
H A D | virtio.rs | 14 use crate::libs::rwlock::RwLockWriteGuard;
|
/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/driver/disk/ahci/ |
H A D | mod.rs | 18 use crate::libs::rwlock::RwLockWriteGuard;
|
/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, 400 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},
|
/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},
|