Lines Matching refs:dev_kobj
690 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()
716 err_remove_subsystem(&dev_kobj); in add_class_symlinks()