Lines Matching refs:SystemError
8 use crate::{libs::spinlock::SpinLock, syscall::SystemError};
104 fn is_mountpoint_root(&self) -> Result<bool, SystemError> { in is_mountpoint_root() argument
126 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument
130 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument
140 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
146 fn truncate(&self, len: usize) -> Result<(), SystemError> { in truncate() argument
156 ) -> Result<usize, SystemError> { in read_at() argument
166 ) -> Result<usize, SystemError> { in write_at() argument
171 fn poll(&self) -> Result<super::PollStatus, SystemError> { in poll() argument
186 fn metadata(&self) -> Result<super::Metadata, SystemError> { in metadata() argument
191 fn set_metadata(&self, metadata: &super::Metadata) -> Result<(), SystemError> { in set_metadata() argument
196 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize() argument
206 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create() argument
215 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument
221 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() argument
226 return Err(SystemError::EBUSY); in unlink()
233 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() argument
238 return Err(SystemError::EBUSY); in rmdir()
252 ) -> Result<(), SystemError> { in move_() argument
256 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() argument
298 fn get_entry_name(&self, ino: InodeId) -> Result<alloc::string::String, SystemError> { in get_entry_name() argument
306 ) -> Result<(alloc::string::String, super::Metadata), SystemError> { in get_entry_name_and_metadata() argument
311 fn ioctl(&self, cmd: u32, data: usize) -> Result<usize, SystemError> { in ioctl() argument
316 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list() argument
323 fn mount(&self, fs: Arc<dyn FileSystem>) -> Result<Arc<MountFS>, SystemError> { in mount() argument
326 return Err(SystemError::ENOTDIR); in mount()