Searched refs:Device (Results 1 – 10 of 10) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | platform_device.rs | 2 super::device::{Device, DeviceState}, 10 pub trait PlatformDevice: Device {
|
D | mod.rs | 4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject, 352 impl Device for LockedPlatform {
|
/DragonOS-0.1.8/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.8/kernel/src/driver/base/device/ |
D | mod.rs | 170 pub trait Device: KObject { interface 212 pub fn add_device(&self, id_table: IdTable, dev: Arc<dyn Device>) { in add_device() argument 232 pub fn get_device(&self, id_table: &IdTable) -> Option<Arc<dyn Device>> { in get_device() argument 250 devices: BTreeMap<IdTable, Arc<dyn Device>>, // 所有设备 270 pub fn device_register<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_register() 284 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.8/kernel/src/io/ |
D | device.rs | 26 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.8/kernel/src/driver/uart/ |
D | uart.rs | 1 use super::super::base::device::Device; 153 impl Device for LockedUart {
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | errno.md | 31 #define EBUSY 10 /* 设备或资源忙 Device or resource busy.*/
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 142 impl<T: Transport> phy::Device for VirtioNICDriver<T> {
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 478 fn device(&self) -> Arc<dyn crate::io::device::Device> { in device() argument
|