Searched refs:DeviceError (Results 1 – 3 of 3) sorted by relevance
/DragonOS/docs/kernel/filesystem/ |
H A D | sysfs.md | 96 /// @return: 成功:() 失败:DeviceError 97 pub fn bus_register<T: Bus>(bus: Arc<T>) -> Result<(), DeviceError> { 104 Err(_) => Err(DeviceError::RegisterError),
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 367 pub enum DeviceError { enum 378 impl From<DeviceError> for SystemError { 379 fn from(value: DeviceError) -> Self { in from() 381 DeviceError::DriverExists => SystemError::EEXIST, in from() 382 DeviceError::DeviceExists => SystemError::EEXIST, in from() 383 DeviceError::InitializeFailed => SystemError::EIO, in from() 384 DeviceError::NotInitialized => SystemError::ENODEV, in from() 385 DeviceError::NoDeviceForDriver => SystemError::ENODEV, in from() 386 DeviceError::NoDriverForDevice => SystemError::ENODEV, in from() 387 DeviceError::RegisterError => SystemError::EIO, in from() [all …]
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 6 Device, DeviceError, IdTable, BLOCKDEVS, 660 pub fn bdev_add(_bdev: Arc<dyn BlockDevice>, id_table: IdTable) -> Result<(), DeviceError> { in bdev_add() argument
|