Searched refs:device_kobj (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/driver/base/device/ |
H A D | driver.rs | 241 let device_kobj = dev.clone() as Arc<dyn KObject>; in driver_sysfs_add() localVariable 249 sysfs_instance().remove_link(&device_kobj, "driver".to_string()); in driver_sysfs_add() 253 sysfs_instance().create_link(Some(&driver_kobj), &device_kobj, device_kobj.name())?; in driver_sysfs_add() 256 sysfs_instance().create_link(Some(&device_kobj), &driver_kobj, "driver".to_string()) in driver_sysfs_add()
|
H A D | dd.rs | 478 let device_kobj = device.clone() as Arc<dyn KObject>; in add_to_sysfs() localVariable 480 sysfs_instance().create_link(Some(&driver_kobj), &device_kobj, device.name())?; in add_to_sysfs() 487 .create_link(Some(&device_kobj), &driver_kobj, "driver".to_string()) in add_to_sysfs() 495 sysfs_instance().remove_link(&device_kobj, "driver".to_string()); in add_to_sysfs()
|