Searched refs:LockedAhciDisk (Results 1 – 3 of 3) sorted by relevance
15 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() argument171 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()
18 use super::ahcidisk::LockedAhciDisk;31 disk: Arc<LockedAhciDisk>,38 pub fn new(disk: Arc<LockedAhciDisk>) -> Arc<Self> { in new()
33 self_ref: Weak<LockedAhciDisk>,38 pub struct LockedAhciDisk(pub SpinLock<AhciDisk>); struct313 impl LockedAhciDisk { implementation319 ) -> Result<Arc<LockedAhciDisk>, i32> { in new() argument323 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