Lines Matching refs:inode
368 let inode = result.root_inode(); in new() localVariable
369 let binding = inode.create( in new()
386 let binding = inode.create("kmsg", FileType::File, ModeType::from_bits_truncate(0o444)); in new()
405 let inode: Arc<dyn IndexNode> = self.root_inode(); in register_pid() localVariable
407 let pid_dir: Arc<dyn IndexNode> = inode.create( in register_pid()
458 let mut inode: SpinLockGuard<ProcFSInode> = self.0.lock(); in open() localVariable
461 if let FileType::Dir = inode.metadata.file_type { in open()
466 let file_size = match inode.fdata.ftype { in open()
467 ProcFileType::ProcStatus => inode.open_status(&mut private_data)?, in open()
468 ProcFileType::ProcMeminfo => inode.open_meminfo(&mut private_data)?, in open()
475 inode.metadata.size = file_size; in open()
503 let inode: SpinLockGuard<ProcFSInode> = self.0.lock(); in read_at() localVariable
506 if inode.metadata.file_type == FileType::Dir { in read_at()
519 match inode.fdata.ftype { in read_at()
521 return inode.proc_read(offset, len, buf, &mut private_data) in read_at()
524 return inode.proc_read(offset, len, buf, &mut private_data) in read_at()
531 let start = inode.data.len().min(offset); in read_at()
532 let end = inode.data.len().min(offset + len); in read_at()
540 let src = &inode.data[start..end]; in read_at()
564 let inode = self.0.lock(); in metadata() localVariable
565 let metadata = inode.metadata.clone(); in metadata()
571 let mut inode = self.0.lock(); in set_metadata() localVariable
572 inode.metadata.atime = metadata.atime; in set_metadata()
573 inode.metadata.mtime = metadata.mtime; in set_metadata()
574 inode.metadata.ctime = metadata.ctime; in set_metadata()
575 inode.metadata.mode = metadata.mode; in set_metadata()
576 inode.metadata.uid = metadata.uid; in set_metadata()
577 inode.metadata.gid = metadata.gid; in set_metadata()
583 let mut inode = self.0.lock(); in resize() localVariable
584 if inode.metadata.file_type == FileType::File { in resize()
585 inode.data.resize(len, 0); in resize()
600 let mut inode = self.0.lock(); in create_with_data() localVariable
602 if inode.metadata.file_type != FileType::Dir { in create_with_data()
607 if inode.children.contains_key(&name) { in create_with_data()
614 parent: inode.self_ref.clone(), in create_with_data()
634 fs: inode.fs.clone(), in create_with_data()
646 inode.children.insert(name, result.clone()); in create_with_data()
655 let mut inode: SpinLockGuard<ProcFSInode> = self.0.lock(); in link() localVariable
659 if inode.metadata.file_type != FileType::Dir { in link()
669 if inode.children.contains_key(&name) { in link()
673 inode in link()
683 let mut inode: SpinLockGuard<ProcFSInode> = self.0.lock(); in unlink() localVariable
685 if inode.metadata.file_type != FileType::Dir { in unlink()
695 let to_delete = inode.children.get(&name).ok_or(SystemError::ENOENT)?; in unlink()
701 inode.children.remove(&name); in unlink()
716 let inode = self.0.lock(); in find() localVariable
718 if inode.metadata.file_type != FileType::Dir { in find()
724 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
728 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
732 return Ok(inode in find()
742 let inode: SpinLockGuard<ProcFSInode> = self.0.lock(); in get_entry_name() localVariable
743 if inode.metadata.file_type != FileType::Dir { in get_entry_name()
757 let mut key: Vec<String> = inode in get_entry_name()
772 …node_id={inode_id:?}, to find={to_find:?}", key_len=key.len(), inode_id = inode.metadata.inode_id,… in get_entry_name()