Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/driver/base/
Dcpu.rs126 parent_kobj: Option<Weak<dyn KObject>>, field
137 parent_kobj: None, in new()
207 self.inner.read().parent_kobj.clone() in parent()
211 self.inner.write().parent_kobj = parent; in set_parent()
Dkset.rs75 parent_kobj: Option<Arc<dyn KObject>>, in new_and_add()
79 if let Some(parent_kobj) = parent_kobj { in new_and_add()
80 kset.set_parent(Some(Arc::downgrade(&parent_kobj))); in new_and_add()
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/
Dmod.rs271 self.inner.read().parent_kobj.clone() in parent()
275 self.inner.write().parent_kobj = parent; in set_parent()
317 parent_kobj: Option<Weak<dyn KObject>>, field
330 parent_kobj: None, in new()
354 parent_kobj: Option<Weak<dyn KObject>>, field
365 parent_kobj: None, in new()
484 self.inner.read().parent_kobj.clone() in parent()
488 self.inner.write().parent_kobj = parent; in set_parent()
/DragonOS-0.1.9/kernel/src/driver/base/device/
Dmod.rs513 let parent_kobj: Arc<dyn KObject>; in get_device_parent() localVariable
516 parent_kobj = sys_devices_virtual_kset() as Arc<dyn KObject>; in get_device_parent()
523 parent_kobj = cp.clone() as Arc<dyn KObject>; in get_device_parent()
529 return Ok(Some(parent_kobj)); in get_device_parent()
603 let parent_kobj = parent.clone() as Arc<dyn KObject>; in add_class_symlinks() localVariable
605 .create_link(Some(&dev_kobj), &&parent_kobj, "device".to_string()) in add_class_symlinks()
/DragonOS-0.1.9/kernel/src/driver/tty/
Dtty_device.rs51 parent_kobj: Option<Weak<dyn KObject>>, field
65 parent_kobj: None, in new()
370 self.inner.read().parent_kobj.clone() in parent()
374 self.inner.write().parent_kobj = parent in set_parent()
/DragonOS-0.1.9/kernel/src/exception/
Dirqdesc.rs115 parent_kobj: None, in new()
360 parent_kobj: Option<Weak<dyn KObject>>, field
550 self.inner().parent_kobj.clone() in parent()
554 self.inner().parent_kobj = parent; in set_parent()