Lines Matching refs:SystemError
15 syscall::SystemError,
63 ) -> Result<&'a mut TtyFilePrivateData, SystemError> { in verify_file_private_data() argument
67 return Err(SystemError::EIO); in verify_file_private_data()
78 pub fn check_rw_param(&self, len: usize, buf: &[u8]) -> Result<(), SystemError> { in check_rw_param() argument
80 return Err(SystemError::EINVAL); in check_rw_param()
86 pub fn input(&self, buf: &[u8]) -> Result<usize, SystemError> { in input() argument
95 TtyError::Closed => return Err(SystemError::ENODEV), in input()
98 return Err(SystemError::EBUSY); in input()
120 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument
134 return Err(SystemError::EINVAL); in open()
148 ) -> Result<usize, SystemError> { in read_at() argument
171 return Err(SystemError::ECONNABORTED); in read_at()
182 ) -> Result<usize, SystemError> { in write_at() argument
199 return Err(SystemError::EPERM); in write_at()
209 return Err(SystemError::EIO); in write_at()
212 fn poll(&self) -> Result<crate::filesystem::vfs::PollStatus, SystemError> { in poll() argument
213 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in poll()
224 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list() argument
225 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in list()
228 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
232 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument
236 fn sync(&self) -> Result<(), SystemError> { in sync() argument
251 _ => return Err(SystemError::EIO), in sync()
291 pub fn tty_init() -> Result<(), SystemError> { in tty_init()
304 return Err(SystemError::EEXIST); in tty_init()