Home
last modified time | relevance | path

Searched defs:DeviceNumber (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new()
89 pub fn device_number(&self) -> DeviceNumber { in device_number()
163 from: DeviceNumber, in register_chardev_region()
166 ) -> Result<DeviceNumber, SystemError> { in register_chardev_region()
180 ) -> Result<DeviceNumber, SystemError> { in alloc_chardev_region()
190 device_number: DeviceNumber, in __register_chardev_region()
193 ) -> Result<DeviceNumber, SystemError> { in __register_chardev_region()
244 device_number: DeviceNumber, in __unregister_chardev_region()
270 pub fn cdev_add(cdev: Arc<dyn CharDevice>, dev_t: DeviceNumber, range: usize) { in cdev_add()
282 pub fn cdev_del(dev_t: DeviceNumber, range: usize) { in cdev_del()
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs27 pub struct DeviceNumber(usize); struct
29 impl Default for DeviceNumber { implementation
35 impl From<usize> for DeviceNumber { implementation
41 impl Into<usize> for DeviceNumber { implementation
47 impl DeviceNumber { impl
51 pub fn new(dev_t: usize) -> DeviceNumber { in new()
74 pub fn mkdev(major: usize, minor: usize) -> DeviceNumber { in mkdev()
/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs48 dev_t: DeviceNumber, in kobj_map()
67 pub fn kobj_unmap(domain: Arc<LockedKObjMap>, dev_t: DeviceNumber, range: usize) { in kobj_unmap()