Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs119 fn major_to_index(major: usize) -> usize { in major_to_index()
120 return major % CHARDEV_MAJOR_HASH_SIZE; in major_to_index()
142 if item.device_number().major() == index { in find_dynamic_major()
194 let mut major = device_number.major(); in __register_chardev_region() localVariable
196 if major >= CHARDEV_MAJOR_MAX { in __register_chardev_region()
200 major, in __register_chardev_region()
208 let chardev = CharDeviceStruct::new(mkdev(major, baseminor), minorct, name); in __register_chardev_region()
209 if major == 0 { in __register_chardev_region()
211 major = Self::find_dynamic_major().expect("Find synamic major error.\n"); in __register_chardev_region()
213 if let Some(items) = CHARDEVS.0.lock().0.get_mut(Self::major_to_index(major)) { in __register_chardev_region()
[all …]
/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs52 if let Some(map) = domain.0.lock().0.get_mut(dev_t.major() % 255) { in kobj_map()
55 mkdev(dev_t.major(), dev_t.minor() + i), in kobj_map()
68 if let Some(map) = domain.0.lock().0.get_mut(dev_t.major() % 255) { in kobj_unmap()
87 if let Some(map) = domain.0.lock().0.get(dev_t.major() % 255) { in kobj_lookup()
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs58 pub fn major(&self) -> usize { in major() method
74 pub fn mkdev(major: usize, minor: usize) -> DeviceNumber { in mkdev()
75 DeviceNumber(((major & 0xfff) << 20) | (minor & 0xfffff)) in mkdev()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmod.rs538 pub fn make_rawdev(major: usize, minor: usize) -> usize { in make_rawdev()
539 ((major & 0xffffff) << 8) | (minor & 0xff) in make_rawdev()
/DragonOS-0.1.8/kernel/src/driver/multiboot2/
Dmultiboot2.h354 uint8_t major; member
/DragonOS-0.1.8/
DLICENSE162 form) with the major components (compiler, kernel, and so on) of the