Searched refs:LockedAhciDisk (Results 1 – 3 of 3) sorted by relevance
16 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() argument172 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()
16 use super::ahcidisk::LockedAhciDisk;29 disk: Arc<LockedAhciDisk>,36 pub fn new(disk: Arc<LockedAhciDisk>) -> Arc<Self> { in new()
34 self_ref: Weak<LockedAhciDisk>,39 pub struct LockedAhciDisk(pub SpinLock<AhciDisk>); struct361 impl LockedAhciDisk { impl367 ) -> Result<Arc<LockedAhciDisk>, SystemError> { in new() argument371 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