Lines Matching refs:index
515 for index in ((DEV_MAJOR_DYN_END.data())..DEV_MAJOR_HASH_SIZE).rev() { in find_dynamic_major()
516 if let Some(item) = blockdevs.get(index as usize) { in find_dynamic_major()
518 return Ok(Major::new(index)); // 返回可用的主设备号 in find_dynamic_major()
523 for index in in find_dynamic_major()
526 if let Some(blockdevss) = blockdevs.get(Self::major_to_index(Major::new(index))) { in find_dynamic_major()
529 if item.device_number().major() == Major::new(index) { in find_dynamic_major()
536 return Ok(Major::new(index)); // 返回可用的主设备号 in find_dynamic_major()
606 for (index, item) in items.iter().enumerate() { in __register_blockdev_region()
607 insert_index = index; in __register_blockdev_region()
643 for (index, item) in items.iter().enumerate() { in __unregister_blockdev_region()
646 items.remove(index); in __unregister_blockdev_region()