Searched refs:Device (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.7/kernel/src/driver/base/platform/ |
D | platform_device.rs | 2 super::device::{Device, DeviceState, DeviceType}, 10 pub trait PlatformDevice: Device {
|
D | mod.rs | 4 Device, DeviceError, DeviceState, DeviceType, IdTable, 350 impl Device for LockedPlatform {
|
/DragonOS-0.1.7/docs/kernel/filesystem/ |
D | sysfs.md | 29 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/ |
D | mod.rs | 115 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()
|
D | bus.rs | 4 Device, DeviceError, DeviceState, IdTable, 74 pub trait Bus: Device {}
|
/DragonOS-0.1.7/kernel/src/io/ |
D | device.rs | 26 pub trait Device: Any + Send + Sync + Debug { trait 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/ |
D | errno.md | 31 #define EBUSY 10 /* 设备或资源忙 Device or resource busy.*/
|
/DragonOS-0.1.7/kernel/src/driver/net/ |
D | virtio_net.rs | 142 impl<T: Transport> phy::Device for VirtioNICDriver<T> {
|
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 430 fn device(&self) -> Arc<dyn crate::io::device::Device> { in device() argument
|