Searched refs:dev_t (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/base/map/ |
D | mod.rs | 48 dev_t: DeviceNumber, in kobj_map() 52 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() 67 pub fn kobj_unmap(domain: Arc<LockedKObjMap>, dev_t: DeviceNumber, range: usize) { in kobj_unmap() 68 if let Some(map) = domain.0.lock().0.get_mut(dev_t.major() % 255) { in kobj_unmap() 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() 87 if let Some(map) = domain.0.lock().0.get(dev_t.major() % 255) { in kobj_lookup() 88 match map.get(&dev_t) { in kobj_lookup()
|
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 62 dev_t: DeviceNumber, //起始设备号 field 76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new() 78 dev_t, in new() 90 self.dev_t in device_number() 99 self.dev_t.minor() in base_minor() 270 pub fn cdev_add(cdev: Arc<dyn CharDevice>, dev_t: DeviceNumber, range: usize) { in cdev_add() 271 if Into::<usize>::into(dev_t) == 0 { in cdev_add() 274 kobj_map(CDEVMAP.clone(), dev_t, range, cdev); in cdev_add() 282 pub fn cdev_del(dev_t: DeviceNumber, range: usize) { in cdev_del() 283 kobj_unmap(CDEVMAP.clone(), dev_t, range); in cdev_del()
|
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | mod.rs | 36 fn from(dev_t: usize) -> Self { in from() 37 DeviceNumber(dev_t) in from() 51 pub fn new(dev_t: usize) -> DeviceNumber { in new() 52 Self(dev_t) in new()
|
/DragonOS-0.1.8/user/libs/libc/src/include/export/sys/ |
D | types.h | 27 typedef uint32_t dev_t; typedef
|
/DragonOS-0.1.8/kernel/src/common/sys/ |
D | types.h | 27 typedef uint32_t dev_t; typedef
|