Lines Matching refs:SystemError

21     syscall::SystemError,
117 fn open_status(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, SystemError> { in open_status() argument
126 return Err(SystemError::ESRCH); in open_status()
203 ) -> Result<usize, SystemError> { in read_status() argument
209 return Err(SystemError::ENOBUFS); in read_status()
283 pub fn register_pid(&self, pid: i64) -> Result<(), SystemError> { in register_pid() argument
305 pub fn unregister_pid(&self, pid: i64) -> Result<(), SystemError> { in unregister_pid() argument
324 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
347 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument
371 ) -> Result<usize, SystemError> { in read_at() argument
373 return Err(SystemError::EINVAL); in read_at()
380 return Err(SystemError::EISDIR); in read_at()
403 return Err(SystemError::ENOBUFS); in read_at()
418 ) -> Result<usize, SystemError> { in write_at() argument
419 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in write_at()
422 fn poll(&self) -> Result<PollStatus, SystemError> { in poll() argument
428 return Err(SystemError::EISDIR); in poll()
442 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
449 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
461 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize() argument
467 return Err(SystemError::EINVAL); in resize()
477 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
482 return Err(SystemError::ENOTDIR); in create_with_data()
486 return Err(SystemError::EEXIST); in create_with_data()
528 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument
531 .ok_or(SystemError::EPERM)?; in link()
537 return Err(SystemError::ENOTDIR); in link()
542 return Err(SystemError::EISDIR); in link()
547 return Err(SystemError::EEXIST); in link()
559 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() argument
563 return Err(SystemError::ENOTDIR); in unlink()
567 return Err(SystemError::ENOTEMPTY); in unlink()
571 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink()
584 ) -> Result<(), SystemError> { in move_() argument
585 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in move_()
588 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() argument
592 return Err(SystemError::ENOTDIR); in find()
597 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
601 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
605 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
610 fn get_entry_name(&self, ino: InodeId) -> Result<String, SystemError> { in get_entry_name() argument
613 return Err(SystemError::ENOTDIR); in get_entry_name()
634 0=>{return Err(SystemError::ENOENT);} in get_entry_name()
642 fn list(&self) -> Result<Vec<String>, SystemError> { in list() argument
645 return Err(SystemError::ENOTDIR); in list()
668 pub fn procfs_register_pid(pid: pid_t) -> Result<(), SystemError> { in procfs_register_pid() argument
694 pub fn procfs_unregister_pid(pid: pid_t) -> Result<(), SystemError> { in procfs_unregister_pid() argument