/DragonOS/kernel/src/driver/base/ |
H A D | kobject.rs | 46 fn kobj_type(&self) -> Option<&'static dyn KObjType>; in kobj_type() method 83 pub kobj_type: Option<&'static dyn KObjType>, field 184 kobj_type: Option<&'static dyn KObjType>, in init_and_add_kobj() 186 Self::kobj_init(&kobj, kobj_type); in init_and_add_kobj() 190 pub fn kobj_init(kobj: &Arc<dyn KObject>, kobj_type: Option<&'static dyn KObjType>) { in kobj_init() 191 kobj.set_kobj_type(kobj_type); in kobj_init() 230 if let Some(ktype) = kobj.kobj_type() { in create_dir() 246 let ktype = kobj.kobj_type(); in remove_kobj()
|
H A D | cpu.rs | 233 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 234 self.inner.read().kobject_common.kobj_type in kobj_type() 238 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type()
|
H A D | kset.rs | 178 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 144 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 145 self.kobj_data.read().kobj_type in kobj_type() 149 self.kobj_data.write().kobj_type = ktype; in set_kobj_type()
|
H A D | pt_device.rs | 172 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 173 self.kobj_data.read().kobj_type in kobj_type() 177 self.kobj_data.write().kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 146 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 147 self.inner().kobject_common.kobj_type in kobj_type() 151 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
H A D | i8042_device.rs | 149 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 150 self.inner().kobject_common.kobj_type in kobj_type() 154 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
H A D | i8042_driver.rs | 163 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
|
/DragonOS/kernel/src/driver/pci/ |
H A D | device.rs | 141 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 142 self.inner().kobject_common.kobj_type in kobj_type() 146 self.inner().kobject_common.kobj_type = ktype in set_kobj_type()
|
H A D | raw_device.rs | 180 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 181 self.inner.read().kobject_common.kobj_type in kobj_type() 185 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 332 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 388 kobj_type: Option<&'static dyn KObjType>, field 399 kobj_type: None, in new() 531 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 532 self.inner.read().kobj_type in kobj_type() 536 self.inner.write().kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 178 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 179 self.inner().kobject_common.kobj_type in kobj_type() 183 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
H A D | sysfs.rs | 216 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 217 self.inner().kobject_common.kobj_type in kobj_type() 221 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 737 if let Some(kobj_type) = dev.kobj_type() { in add_attrs() 738 let attr_groups = kobj_type.attribute_groups().unwrap_or(&[]); in add_attrs() 752 if let Some(kobj_type) = dev.kobj_type() { in add_attrs() 753 self.add_groups(dev, kobj_type.attribute_groups().unwrap_or(&[])) in add_attrs() 1089 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 1090 return self.inner().kobject_common.kobj_type; in kobj_type() 1094 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 163 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 164 self.inner().kobj_common.kobj_type in kobj_type() 168 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type() 743 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 744 self.inner().kobj_common.kobj_type in kobj_type() 768 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type() 948 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 949 self.inner().kobj_common.kobj_type in kobj_type() 953 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
|
H A D | loopback.rs | 346 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 347 self.inner().kobj_common.kobj_type in kobj_type() 371 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 447 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 448 self.inner().kobject_common.kobj_type in kobj_type() 472 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type() 634 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 635 self.inner().kobj_common.kobj_type in kobj_type() 639 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 234 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 235 self.inner().kobject_common.kobj_type in kobj_type() 239 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 205 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 206 self.inner().kobject_common.kobj_type in kobj_type() 210 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 154 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 155 self.inner().kobject_common.kobj_type in kobj_type() 159 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 302 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 303 self.inner().kobject_common.kobj_type in kobj_type() 307 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 408 fn kobj_type(&self) -> Option<&'static dyn crate::driver::base::kobject::KObjType> { in kobj_type() method 409 self.inner().kobj_common.kobj_type in kobj_type() 433 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 558 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 559 self.inner().kobject_common.kobj_type in kobj_type() 563 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 133 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 246 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method 247 self.inner().kobject_common.kobj_type in kobj_type() 251 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type() 834 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type() method
|