Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dmod.rs72 let mut disks_list = LOCKED_DISKS_LIST.lock(); in ahci_rust_init() localVariable
127 disks_list.push(LockedAhciDisk::new( in ahci_rust_init()
140 LockedAhciInode::new(disks_list.last().unwrap().clone()), in ahci_rust_init()
164 let disks_list = LOCKED_DISKS_LIST.lock(); in disks() localVariable
165 return disks_list.clone(); in disks()
171 let disks_list: SpinLockGuard<Vec<Arc<LockedAhciDisk>>> = LOCKED_DISKS_LIST.lock(); in get_disks_by_name() localVariable
172 for i in 0..disks_list.len() { in get_disks_by_name()
173 if disks_list[i].0.lock().name == name { in get_disks_by_name()
174 return Ok(disks_list[i].clone()); in get_disks_by_name()