Lines Matching refs:KernFSInode
33 root_inode: Arc<KernFSInode>,
76 let ptr = root_inode.as_ref() as *const KernFSInode as *mut KernFSInode; in new() constant
86 fn create_root_inode() -> Arc<KernFSInode> { in create_root_inode()
103 let root_inode = Arc::new(KernFSInode { in create_root_inode()
124 pub struct KernFSInode { struct
129 self_ref: Weak<KernFSInode>, argument
135 children: SpinLock<HashMap<String, Arc<KernFSInode>>>, argument
144 parent: Weak<KernFSInode>, argument
149 symlink_target: Option<Weak<KernFSInode>>,
153 impl IndexNode for KernFSInode { implementation
387 impl KernFSInode { impl
389 parent: Option<Arc<KernFSInode>>, in new() argument
395 ) -> Arc<KernFSInode> { in new() argument
397 let parent: Weak<KernFSInode> = parent.map(|x| Arc::downgrade(&x)).unwrap_or_default(); in new()
399 let inode = Arc::new(KernFSInode { in new()
416 let ptr = inode.as_ref() as *const KernFSInode as *mut KernFSInode; in new() constant
454 ) -> Result<Arc<KernFSInode>, SystemError> { in add_dir() argument
486 ) -> Result<Arc<KernFSInode>, SystemError> { in add_file() argument
510 ) -> Result<Arc<KernFSInode>, SystemError> { in inner_create() argument
535 let new_inode: Arc<KernFSInode> = Self::new( in inner_create()
591 target: &Arc<KernFSInode>, in add_link() argument
593 ) -> Result<Arc<KernFSInode>, SystemError> { in add_link() argument
613 pub fn parent(&self) -> Option<Arc<KernFSInode>> { in parent() argument
622 pub fn symlink_target(&self) -> Option<Arc<KernFSInode>> { in symlink_target() argument