Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_driver.rs5 driver::{driver_manager, Driver},
46 return driver_manager().register(driver as Arc<dyn Driver>); in register()
52 driver_manager().unregister(&(driver.clone() as Arc<dyn Driver>)); in unregister()
/DragonOS/kernel/src/driver/input/serio/
H A Dserio_driver.rs6 driver::{driver_manager, Driver},
70 return driver_manager().register(driver as Arc<dyn Driver>); in register()
83 driver_manager().unregister(&(driver.clone() as Arc<dyn Driver>)); in unregister()
/DragonOS/kernel/src/driver/pci/
H A Ddriver.rs6 driver::{driver_manager, Driver},
77 return driver_manager().register(driver as Arc<dyn Driver>); in register()
82 driver_manager().unregister(&(driver.clone() as Arc<dyn Driver>)); in unregister()
/DragonOS/kernel/src/driver/base/device/
H A Ddd.rs22 driver::{driver_manager, Driver, DriverManager},
175 return driver_manager() in do_device_attach_driver()
190 return driver_manager().driver_is_bound(dev); in device_is_bound()
207 let r = driver_manager().driver_sysfs_add(dev); in device_bind_driver()
210 driver_manager().driver_bound(dev); in device_bind_driver()
H A Dbus.rs7 device::{device_manager, driver::driver_manager},
313 let r = driver_manager().driver_attach(driver); in add_driver()
320 driver_manager() in add_driver()
483 driver_manager().create_attr_file(driver, &DriverAttrUnbind)?; in add_bind_files()
485 driver_manager() in add_bind_files()
488 driver_manager().remove_attr_file(driver, &DriverAttrUnbind); in add_bind_files()
824 if driver_manager().match_device(&driver, &device)? { in store()
H A Ddriver.rs45 pub fn driver_manager() -> &'static DriverManager { in driver_manager() function
/DragonOS/kernel/src/driver/virtio/
H A Dsysfs.rs17 driver::{driver_manager, Driver},
174 return driver_manager().register(driver as Arc<dyn Driver>); in register()
179 driver_manager().unregister(&(driver.clone() as Arc<dyn Driver>)); in unregister()