Lines Matching refs:Result
63 ) -> Result<&'a mut TtyFilePrivateData, SystemError> { in verify_file_private_data()
78 pub fn check_rw_param(&self, len: usize, buf: &[u8]) -> Result<(), SystemError> { in check_rw_param() argument
86 pub fn input(&self, buf: &[u8]) -> Result<usize, SystemError> { in input()
87 let r: Result<usize, TtyError> = self.core.input(buf, false); in input()
120 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument
148 ) -> Result<usize, SystemError> { in read_at()
159 let r: Result<usize, TtyError> = self.core.read_stdin(&mut buf[0..len], true); in read_at()
182 ) -> Result<usize, SystemError> { in write_at()
194 let r: Result<usize, TtyError> = if data.flags.contains(TtyFileFlag::STDOUT) { in write_at()
212 fn poll(&self) -> Result<crate::filesystem::vfs::PollStatus, SystemError> { in poll()
224 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
228 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata()
232 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument
236 fn sync(&self) -> Result<(), SystemError> { in sync() argument
242 let r: Result<usize, TtyError> = self.core.output(&mut buf[0..511], false); in sync()
291 pub fn tty_init() -> Result<(), SystemError> { in tty_init()