Home
last modified time | relevance | path

Searched refs:root_inode (Results 1 – 15 of 15) sorted by relevance

/DragonOS/kernel/src/filesystem/sysfs/
H A Dmod.rs204 root_inode: Arc<KernFSInode>, field
212 let root_inode: Arc<KernFSInode> = kernfs.root_inode().downcast_arc().unwrap(); in new() localVariable
214 let sysfs = SysFS { root_inode, kernfs }; in new()
219 pub fn root_inode(&self) -> &Arc<KernFSInode> { in root_inode() method
220 return &self.root_inode; in root_inode()
H A Ddir.rs62 .unwrap_or_else(|| Some(self.root_inode.clone())) in create_dir()
92 let sys_root_inode = self.root_inode(); in kernfs_path()
H A Dsymlink.rs55 Some(self.root_inode().clone()) in do_create_link()
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs33 root_inode: Arc<KernFSInode>, field
48 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method
49 return self.root_inode.clone(); in root_inode()
70 let root_inode = Self::create_root_inode(); in new() localVariable
72 root_inode: root_inode.clone(), in new()
76 let ptr = root_inode.as_ref() as *const KernFSInode as *mut KernFSInode; in new()
78 (*ptr).self_ref = Arc::downgrade(&root_inode); in new()
81 root_inode.inner.write().parent = Arc::downgrade(&root_inode); in new()
82 *root_inode.fs.write() = Arc::downgrade(&fs); in new()
103 let root_inode = Arc::new(KernFSInode { in create_root_inode() localVariable
[all …]
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs43 root_inode: Arc<LockedDevPtsFSInode>, field
50 let root_inode = Arc::new(LockedDevPtsFSInode::new()); in new() localVariable
52 root_inode, in new()
57 ret.root_inode.set_fs(Arc::downgrade(&ret)); in new()
68 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method
69 self.root_inode.clone() in root_inode()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs35 root_inode: Arc<LockedDevFSInode>, field
44 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
45 return self.root_inode.clone(); in root_inode()
79 root_inode: root, in new()
84 let mut root_guard: SpinLockGuard<DevFSInode> = devfs.root_inode.0.lock(); in new()
85 root_guard.parent = Arc::downgrade(&devfs.root_inode); in new()
86 root_guard.self_ref = Arc::downgrade(&devfs.root_inode); in new()
92 let root: &Arc<LockedDevFSInode> = &devfs.root_inode; in new()
108 let dev_root: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_bultinin_device()
126 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_device()
[all …]
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs90 root_inode: Arc<LockedProcFSInode>, field
293 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
294 return self.root_inode.clone(); in root_inode()
355 root_inode: root, in new()
360 let mut root_guard: SpinLockGuard<ProcFSInode> = result.root_inode.0.lock(); in new()
361 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
362 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
368 let inode = result.root_inode(); in new()
405 let inode: Arc<dyn IndexNode> = self.root_inode(); in register_pid()
435 let proc: Arc<dyn IndexNode> = self.root_inode(); in unregister_pid()
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs88 root_inode: Arc<OvlInode>, field
120 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method
121 self.root_inode.clone() in root_inode()
194 let root_inode = layers[0].mnt.clone(); in make_overlayfs() localVariable
202 root_inode, in make_overlayfs()
227 .root_inode() in create_whiteout()
H A Dcopy_up.rs38 .root_inode(); in create_upper_inode()
/DragonOS/kernel/src/filesystem/vfs/
H A Dcore.rs64 let root_inode = mount_fs.root_inode(); in vfs_init() localVariable
67 __ROOT_INODE = Some(root_inode.clone()); in vfs_init()
90 let new_root_inode = new_fs.root_inode(); in migrate_virtual_filesystem()
H A Dmount.rs97 inner_inode: self.inner_filesystem.root_inode(), in mountpoint_root_inode()
148 return Ok(self.inner_inode.fs().root_inode().metadata()?.inode_id in is_mountpoint_root()
541 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method
543 Some(inode) => return inode.mount_fs.root_inode(), in root_inode()
H A Dmod.rs847 fn root_inode(&self) -> Arc<dyn IndexNode>; in root_inode() method
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs44 root_inode: Arc<LockedRamFSInode>, field
103 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
104 return self.root_inode.clone(); in root_inode()
141 root_inode: root, in new()
146 let mut root_guard: SpinLockGuard<RamFSInode> = result.root_inode.0.lock(); in new()
147 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
148 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs87 root_inode: Arc<LockedFATInode>, field
264 fn root_inode(&self) -> Arc<dyn crate::filesystem::vfs::IndexNode> { in root_inode() method
265 return self.root_inode.clone(); in root_inode()
350 let root_inode: Arc<LockedFATInode> = Arc::new(LockedFATInode(SpinLock::new(FATInode { in new() localVariable
386 root_inode, in new()
390 let mut root_guard: SpinLockGuard<FATInode> = result.root_inode.0.lock(); in new()
392 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
393 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
/DragonOS/kernel/src/perf/
H A Dmod.rs211 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method