Lines Matching refs:SystemError
2 use crate::{filesystem::vfs::IndexNode, kdebug, syscall::SystemError};
10 pub fn sys_bus_register(bus_name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in sys_bus_register() argument
16 .ok_or(SystemError::E2BIG) in sys_bus_register()
25 pub fn sys_bus_unregister(bus_name: &str) -> Result<(), SystemError> { in sys_bus_unregister() argument
30 .ok_or(SystemError::E2BIG) in sys_bus_unregister()
40 ) -> Result<(Arc<dyn IndexNode>, Arc<dyn IndexNode>), SystemError> { in sys_bus_init() argument
49 None => Err(SystemError::E2BIG), in sys_bus_init()
57 pub fn bus_driver_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_driver_register() argument
63 .ok_or(SystemError::E2BIG) in bus_driver_register()
66 Err(_) => return Err(SystemError::EXDEV), in bus_driver_register()
68 Err(_) => return Err(SystemError::EXDEV), in bus_driver_register()
76 pub fn bus_device_register(bus_name: &str, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in bus_device_register() argument
82 .ok_or(SystemError::E2BIG) in bus_device_register()
85 Err(_) => return Err(SystemError::EXDEV), in bus_device_register()
87 Err(_) => return Err(SystemError::EXDEV), in bus_device_register()