Home
last modified time | relevance | path

Searched refs:dev_kobj (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/src/driver/base/device/
H A Dmod.rs690 let err_remove_device = |dev_kobj: &Arc<dyn KObject>| { in add_class_symlinks()
691 sysfs_instance().remove_link(dev_kobj, "device".to_string()); in add_class_symlinks()
694 let err_remove_subsystem = |dev_kobj: &Arc<dyn KObject>| { in add_class_symlinks()
695 sysfs_instance().remove_link(dev_kobj, "subsystem".to_string()); in add_class_symlinks()
699 let dev_kobj = dev.clone() as Arc<dyn KObject>; in add_class_symlinks() localVariable
701 sysfs_instance().create_link(Some(&dev_kobj), &subsys_kobj, "subsystem".to_string())?; in add_class_symlinks()
706 .create_link(Some(&dev_kobj), &parent_kobj, "device".to_string()) in add_class_symlinks()
708 err_remove_subsystem(&dev_kobj); in add_class_symlinks()
713 .create_link(Some(&subsys_kobj), &dev_kobj, dev.name()) in add_class_symlinks()
715 err_remove_device(&dev_kobj); in add_class_symlinks()
[all …]
H A Dbus.rs275 let dev_kobj = dev.clone() as Arc<dyn KObject>; in add_device() localVariable
279 &dev_kobj, in add_device()
283 Some(&dev_kobj), in add_device()
/DragonOS/kernel/src/driver/base/
H A Dclass.rs61 fn dev_kobj(&self) -> Option<Arc<dyn KObject>>; in dev_kobj() method
126 if class.dev_kobj().is_none() { in class_register()
/DragonOS/kernel/src/driver/tty/
H A Dsysfs.rs53 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() method
/DragonOS/kernel/src/driver/net/
H A Dclass.rs68 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() method
/DragonOS/kernel/src/driver/rtc/
H A Dclass.rs70 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() method
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs104 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() method