Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dmod.rs15 ahcidisk::LockedAhciDisk,
35 static LOCKED_DISKS_LIST: SpinLock<Vec<Arc<LockedAhciDisk>>> = SpinLock::new(Vec::new());
127 disks_list.push(LockedAhciDisk::new( in ahci_rust_init()
163 pub fn disks() -> Vec<Arc<LockedAhciDisk>> { in disks()
169 pub fn get_disks_by_name(name: String) -> Result<Arc<LockedAhciDisk>, i32> { in get_disks_by_name() argument
171 let disks_list: SpinLockGuard<Vec<Arc<LockedAhciDisk>>> = LOCKED_DISKS_LIST.lock(); in get_disks_by_name()
193 let disk: Arc<LockedAhciDisk> = get_disks_by_name("ahci_disk_0".to_string()).unwrap(); in __test_ahci()
Dahci_inode.rs18 use super::ahcidisk::LockedAhciDisk;
31 disk: Arc<LockedAhciDisk>,
38 pub fn new(disk: Arc<LockedAhciDisk>) -> Arc<Self> { in new()
Dahcidisk.rs33 self_ref: Weak<LockedAhciDisk>,
38 pub struct LockedAhciDisk(pub SpinLock<AhciDisk>); struct
313 impl LockedAhciDisk { implementation
319 ) -> Result<Arc<LockedAhciDisk>, i32> { in new() argument
323 let result: Arc<LockedAhciDisk> = Arc::new(LockedAhciDisk(SpinLock::new(AhciDisk { in new()
333 let weak_this: Weak<LockedAhciDisk> = Arc::downgrade(&result); // 获取this的弱指针 in new()
390 impl BlockDevice for LockedAhciDisk { implementation