Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs48 fn major_to_index(major: Major) -> usize { in major_to_index() method
70 if let Some(chardevss) = chardevs.get(Self::major_to_index(Major::new(index))) { in find_dynamic_major()
148 if let Some(items) = CHARDEVS.lock().get_mut(Self::major_to_index(major)) { in __register_chardev_region()
185 .get_mut(Self::major_to_index(device_number.major())) in __unregister_chardev_region()
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs504 fn major_to_index(major: Major) -> usize { in major_to_index() method
526 if let Some(blockdevss) = blockdevs.get(Self::major_to_index(Major::new(index))) { in find_dynamic_major()
604 if let Some(items) = BLOCKDEVS.lock().get_mut(Self::major_to_index(major)) { in __register_blockdev_region()
641 .get_mut(Self::major_to_index(device_number.major())) in __unregister_blockdev_region()