Home
last modified time | relevance | path

Searched refs:LockedAhciDisk (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs16 ahcidisk::LockedAhciDisk,
36 static LOCKED_DISKS_LIST: SpinLock<Vec<Arc<LockedAhciDisk>>> = SpinLock::new(Vec::new());
128 disks_list.push(LockedAhciDisk::new( in ahci_rust_init()
164 pub fn disks() -> Vec<Arc<LockedAhciDisk>> { in disks()
170 pub fn get_disks_by_name(name: String) -> Result<Arc<LockedAhciDisk>, SystemError> { in get_disks_by_name() argument
172 let disks_list: SpinLockGuard<Vec<Arc<LockedAhciDisk>>> = LOCKED_DISKS_LIST.lock(); in get_disks_by_name()
194 let disk: Arc<LockedAhciDisk> = get_disks_by_name("ahci_disk_0".to_string()).unwrap(); in __test_ahci()
Dahci_inode.rs16 use super::ahcidisk::LockedAhciDisk;
29 disk: Arc<LockedAhciDisk>,
36 pub fn new(disk: Arc<LockedAhciDisk>) -> Arc<Self> { in new()
Dahcidisk.rs34 self_ref: Weak<LockedAhciDisk>,
39 pub struct LockedAhciDisk(pub SpinLock<AhciDisk>); struct
361 impl LockedAhciDisk { impl
367 ) -> Result<Arc<LockedAhciDisk>, SystemError> { in new() argument
371 let result: Arc<LockedAhciDisk> = Arc::new(LockedAhciDisk(SpinLock::new(AhciDisk { in new()
381 let weak_this: Weak<LockedAhciDisk> = Arc::downgrade(&result); // 获取this的弱指针 in new()
438 impl BlockDevice for LockedAhciDisk { implementation