Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs125 pub enum DeviceError { enum
134 impl Into<SystemError> for DeviceError { implementation
137 DeviceError::DriverExists => SystemError::EEXIST, in into()
138 DeviceError::DeviceExists => SystemError::EEXIST, in into()
139 DeviceError::InitializeFailed => SystemError::EIO, in into()
140 DeviceError::NoDeviceForDriver => SystemError::ENODEV, in into()
141 DeviceError::NoDriverForDevice => SystemError::ENODEV, in into()
142 DeviceError::RegisterError => SystemError::EIO, in into()
270 pub fn device_register<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_register() argument
277 Err(_) => Err(DeviceError::RegisterError), in device_register()
[all …]
Dbus.rs4 Device, DeviceError, DeviceState, IdTable,
177 pub fn bus_register<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> { in bus_register() argument
184 Err(_) => Err(DeviceError::RegisterError), in bus_register()
192 pub fn bus_unregister<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> { in bus_unregister() argument
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject,
96 fn register_platform_driver(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), DeviceError> { in register_platform_driver() argument
102 return Err(DeviceError::DriverExists); in register_platform_driver()
126 ) -> Result<(), DeviceError> { in register_platform_device() argument
131 return Err(DeviceError::DeviceExists); in register_platform_device()
152 fn driver_match_device(&self, driver: Arc<dyn PlatformDriver>) -> Result<i32, DeviceError> { in driver_match_device() argument
169 Err(_) => return Err(DeviceError::InitializeFailed), in driver_match_device()
175 return Err(DeviceError::NoDeviceForDriver); in driver_match_device()
185 fn device_match_driver(&self, device: Arc<dyn PlatformDevice>) -> Result<(), DeviceError> { in device_match_driver() argument
198 Err(_) => return Err(DeviceError::InitializeFailed), in device_match_driver()
[all …]
/DragonOS-0.1.8/docs/kernel/filesystem/
Dsysfs.md96 /// @return: 成功:() 失败:DeviceError
97 pub fn bus_register<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> {
104 Err(_) => Err(DeviceError::RegisterError),