Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dplatform_device.rs2 super::device::{Device, DeviceState},
10 pub trait PlatformDevice: Device {
Dmod.rs4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject,
352 impl Device for LockedPlatform {
/DragonOS-0.1.8/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.8/kernel/src/driver/base/device/
Dmod.rs170 pub trait Device: KObject { trait
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()
Dbus.rs4 Device, DeviceError, DeviceState, IdTable,
74 pub trait Bus: Device {}
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs26 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.8/kernel/src/driver/uart/
Duart.rs1 use super::super::base::device::Device;
153 impl Device for LockedUart {
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Derrno.md31 #define EBUSY 10 /* 设备或资源忙 Device or resource busy.*/
/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs142 impl<T: Transport> phy::Device for VirtioNICDriver<T> {
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs478 fn device(&self) -> Arc<dyn crate::io::device::Device> { in device() argument