Searched refs:DeviceNumber (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/base/map/ |
D | mod.rs | 1 use super::device::{mkdev, DeviceNumber, KObject}; 32 struct KObjMap(Vec<BTreeMap<DeviceNumber, Probe>>); 48 dev_t: DeviceNumber, in kobj_map() argument 67 pub fn kobj_unmap(domain: Arc<LockedKObjMap>, dev_t: DeviceNumber, range: usize) { in kobj_unmap() argument 70 let rm_dev_t = &DeviceNumber::new(Into::<usize>::into(dev_t) + i); in kobj_unmap() 86 pub fn kobj_lookup(domain: Arc<LockedKObjMap>, dev_t: DeviceNumber) -> Option<Arc<dyn KObject>> { in kobj_lookup()
|
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 2 device::{mkdev, DeviceNumber, KObject}, 62 dev_t: DeviceNumber, //起始设备号 76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new() argument 89 pub fn device_number(&self) -> DeviceNumber { in device_number() argument 163 from: DeviceNumber, in register_chardev_region() argument 166 ) -> Result<DeviceNumber, SystemError> { in register_chardev_region() argument 180 ) -> Result<DeviceNumber, SystemError> { in alloc_chardev_region() argument 190 device_number: DeviceNumber, in __register_chardev_region() argument 193 ) -> Result<DeviceNumber, SystemError> { in __register_chardev_region() argument 244 device_number: DeviceNumber, in __unregister_chardev_region() argument [all …]
|
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | mod.rs | 27 pub struct DeviceNumber(usize); struct 29 impl Default for DeviceNumber { implementation 31 DeviceNumber(0) in default() 35 impl From<usize> for DeviceNumber { implementation 37 DeviceNumber(dev_t) in from() 41 impl Into<usize> for DeviceNumber { implementation 47 impl DeviceNumber { implementation 51 pub fn new(dev_t: usize) -> DeviceNumber { in new() argument 74 pub fn mkdev(major: usize, minor: usize) -> DeviceNumber { in mkdev() argument 75 DeviceNumber(((major & 0xfff) << 20) | (minor & 0xfffff)) in mkdev()
|