Home
last modified time | relevance | path

Searched refs:Bus (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.8/docs/kernel/filesystem/
Dsysfs.md70 pub trait Bus: Device {}
75 buses: BTreeMap<IdTable, Arc<dyn Bus>>, // 总线设备表
85 …对挂载在其上的设备和驱动进行匹配,并驱动设备。该总线是一类设备,同时也是一类总线,编程时需要创建该设备实例,并为设备实例实现Device trait和Bus trait,以表明该结构是一类总线设备…
95 /// @parameter bus: Bus设备实体
97 pub fn bus_register<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> {
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dbus.rs74 pub trait Bus: Device {} interface
79 buses: BTreeMap<IdTable, Arc<dyn Bus>>, // 总线设备表
108 pub fn add_bus(&self, id_table: IdTable, bus_dev: Arc<dyn Bus>) { in add_bus() argument
149 pub fn get_bus(&self, id_table: &IdTable) -> Option<Arc<dyn Bus>> { in get_bus() argument
177 pub fn bus_register<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> { in bus_register()
192 pub fn bus_unregister<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> { in bus_unregister()
Dmod.rs82 Bus, enumerator
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs2 bus::{bus_driver_register, bus_register, Bus, BusDriver, BusState},
356 return DeviceType::Bus; in dev_type()
382 impl Bus for LockedPlatform {}