Home
last modified time | relevance | path

Searched refs:Device (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/base/platform/
Dplatform_device.rs2 super::device::{Device, DeviceState, DeviceType},
10 pub trait PlatformDevice: Device {
Dmod.rs4 Device, DeviceError, DeviceState, DeviceType, IdTable,
350 impl Device for LockedPlatform {
/DragonOS-0.1.7/docs/kernel/filesystem/
Dsysfs.md29 pub trait Device: Any + Send + Sync + Debug {}
35 /// @brief Device管理器
38 devices: BTreeMap<IdTable, Arc<dyn Device>>, // 所有设备
70 pub trait Bus: Device {}
85 …线是一种虚拟总线,可以对挂载在其上的设备和驱动进行匹配,并驱动设备。该总线是一类设备,同时也是一类总线,编程时需要创建该设备实例,并为设备实例实现Device trait和Bus trait,以表…
/DragonOS-0.1.7/kernel/src/driver/base/device/
Dmod.rs115 pub trait Device: Any + Send + Sync + Debug { interface
152 pub fn add_device(&self, id_table: IdTable, dev: Arc<dyn Device>) { in add_device() argument
172 pub fn get_device(&self, id_table: &IdTable) -> Option<Arc<dyn Device>> { in get_device() argument
190 devices: BTreeMap<IdTable, Arc<dyn Device>>, // 所有设备
210 pub fn device_register<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_register()
224 pub fn device_unregister<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_unregister()
Dbus.rs4 Device, DeviceError, DeviceState, IdTable,
74 pub trait Bus: Device {}
/DragonOS-0.1.7/kernel/src/io/
Ddevice.rs26 pub trait Device: Any + Send + Sync + Debug { interface
97 fn device(&self) -> Arc<dyn Device>; in device() argument
107 impl<T: BlockDevice> Device for T {
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/
Derrno.md31 #define EBUSY 10 /* 设备或资源忙 Device or resource busy.*/
/DragonOS-0.1.7/kernel/src/driver/net/
Dvirtio_net.rs142 impl<T: Transport> phy::Device for VirtioNICDriver<T> {
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dahcidisk.rs430 fn device(&self) -> Arc<dyn crate::io::device::Device> { in device() argument