Lines Matching refs:i32
117 fn open_status(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, i32> { in open_status() argument
126 return Err(-(ESRCH as i32)); in open_status()
201 ) -> Result<usize, i32> { in read_status() argument
207 return Err(-(ENOBUFS as i32)); in read_status()
281 pub fn register_pid(&self, pid: i64) -> Result<(), i32> { in register_pid() argument
303 pub fn unregister_pid(&self, pid: i64) -> Result<(), i32> { in unregister_pid() argument
322 fn open(&self, data: &mut FilePrivateData) -> Result<(), i32> { in open() argument
345 fn close(&self, data: &mut FilePrivateData) -> Result<(), i32> { in close() argument
369 ) -> Result<usize, i32> { in read_at() argument
371 return Err(-(EINVAL as i32)); in read_at()
378 return Err(-(EISDIR as i32)); in read_at()
401 return Err(-(ENOBUFS as i32)); in read_at()
416 ) -> Result<usize, i32> { in write_at() argument
417 return Err(-(ENOTSUP as i32)); in write_at()
420 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument
426 return Err(-(EISDIR as i32)); in poll()
442 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument
449 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument
461 fn resize(&self, len: usize) -> Result<(), i32> { in resize() argument
467 return Err(-(EINVAL as i32)); in resize()
477 ) -> Result<Arc<dyn IndexNode>, i32> { in create_with_data() argument
482 return Err(-(ENOTDIR as i32)); in create_with_data()
486 return Err(-(EEXIST as i32)); in create_with_data()
528 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), i32> { in link() argument
531 .ok_or(-(EPERM as i32))?; in link()
537 return Err(-(ENOTDIR as i32)); in link()
542 return Err(-(EISDIR as i32)); in link()
547 return Err(-(EEXIST as i32)); in link()
559 fn unlink(&self, name: &str) -> Result<(), i32> { in unlink() argument
563 return Err(-(ENOTDIR as i32)); in unlink()
567 return Err(-(ENOTEMPTY as i32)); in unlink()
571 let to_delete = inode.children.get(name).ok_or(-(ENOENT as i32))?; in unlink()
584 ) -> Result<(), i32> { in move_() argument
585 return Err(-(ENOTSUP as i32)); in move_()
588 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, i32> { in find() argument
592 return Err(-(ENOTDIR as i32)); in find()
597 return Ok(inode.self_ref.upgrade().ok_or(-(ENOENT as i32))?); in find()
601 return Ok(inode.parent.upgrade().ok_or(-(ENOENT as i32))?); in find()
605 return Ok(inode.children.get(name).ok_or(-(ENOENT as i32))?.clone()); in find()
610 fn get_entry_name(&self, ino: InodeId) -> Result<String, i32> { in get_entry_name() argument
613 return Err(-(ENOTDIR as i32)); in get_entry_name()
634 0=>{return Err(-(ENOENT as i32));} in get_entry_name()
642 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
645 return Err(-(ENOTDIR as i32)); in list()
668 pub fn procfs_register_pid(pid: pid_t) -> Result<(), i32> { in procfs_register_pid() argument
694 pub fn procfs_unregister_pid(pid: pid_t) -> Result<(), i32> { in procfs_unregister_pid() argument