Searched refs:baseminor (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/driver/base/char/ |
H A D | mod.rs | 108 baseminor: u32, in alloc_chardev_region() 113 DeviceNumber::new(Major::UNNAMED_MAJOR, baseminor), in alloc_chardev_region() 130 let baseminor = device_number.minor(); in __register_chardev_region() localVariable 139 if minorct > DeviceNumber::MINOR_MASK + 1 - baseminor { in __register_chardev_region() 141 name, baseminor, baseminor + minorct - 1, 0, DeviceNumber::MINOR_MASK); in __register_chardev_region() 143 let chardev = DeviceStruct::new(DeviceNumber::new(major, baseminor), minorct, name); in __register_chardev_region() 158 if item.device_number().minor() + item.minorct() <= baseminor { in __register_chardev_region() 161 if item.base_minor() >= baseminor + minorct { in __register_chardev_region() 171 return Ok(DeviceNumber::new(major, baseminor)); in __register_chardev_region()
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 564 baseminor: u32, in alloc_blockdev_region() 569 DeviceNumber::new(Major::UNNAMED_MAJOR, baseminor), in alloc_blockdev_region() 586 let baseminor = device_number.minor(); in __register_blockdev_region() localVariable 595 if minorct > DeviceNumber::MINOR_MASK + 1 - baseminor { in __register_blockdev_region() 597 name, baseminor, baseminor + minorct - 1, 0, DeviceNumber::MINOR_MASK); in __register_blockdev_region() 599 let blockdev = DeviceStruct::new(DeviceNumber::new(major, baseminor), minorct, name); in __register_blockdev_region() 614 if item.device_number().minor() + item.minorct() <= baseminor { in __register_blockdev_region() 617 if item.base_minor() >= baseminor + minorct { in __register_blockdev_region() 627 return Ok(DeviceNumber::new(major, baseminor)); in __register_blockdev_region()
|