Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/filesystem/vfs/
Dcore.rs52 let root_inode = Box::leak(Box::new(mount_fs.root_inode())); in vfs_init() localVariable
55 __ROOT_INODE = root_inode; in vfs_init()
59 root_inode in vfs_init()
62 root_inode in vfs_init()
70 let _t = root_inode in vfs_init()
80 let _t = root_inode in vfs_init()
87 let root_inode = ROOT_INODE().list().expect("VFS init failed"); in vfs_init() localVariable
88 if root_inode.len() > 0 { in vfs_init()
131 let new_root_inode = Box::leak(Box::new(new_fs.root_inode())); in migrate_virtual_filesystem()
Dmount.rs75 inner_inode: self.inner_filesystem.root_inode(), in mountpoint_root_inode()
108 return Ok(self.inner_inode.fs().root_inode().metadata()?.inode_id in is_mountpoint_root()
346 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method
348 Some(inode) => return inode.mount_fs.root_inode(), in root_inode()
Dmod.rs485 fn root_inode(&self) -> Arc<dyn IndexNode>; in root_inode() method
/DragonOS-0.1.5/kernel/src/filesystem/devfs/
Dmod.rs28 root_inode: Arc<LockedDevFSInode>, field
36 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
37 return self.root_inode.clone(); in root_inode()
57 let devfs: Arc<DevFS> = Arc::new(DevFS { root_inode: root }); in new()
60 let mut root_guard: SpinLockGuard<DevFSInode> = devfs.root_inode.0.lock(); in new()
61 root_guard.parent = Arc::downgrade(&devfs.root_inode); in new()
62 root_guard.self_ref = Arc::downgrade(&devfs.root_inode); in new()
68 let root: &Arc<LockedDevFSInode> = &devfs.root_inode; in new()
84 let dev_root: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_bultinin_device()
98 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_device()
[all …]
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/
Dmod.rs34 root_inode: Arc<LockedRamFSInode>, field
59 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
60 return self.root_inode.clone(); in root_inode()
104 let result: Arc<RamFS> = Arc::new(RamFS { root_inode: root }); in new()
107 let mut root_guard: SpinLockGuard<RamFSInode> = result.root_inode.0.lock(); in new()
108 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
109 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
/DragonOS-0.1.5/kernel/src/filesystem/procfs/
Dmod.rs72 root_inode: Arc<LockedProcFSInode>, field
218 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
219 return self.root_inode.clone(); in root_inode()
266 let result: Arc<ProcFS> = Arc::new(ProcFS { root_inode: root }); in new()
269 let mut root_guard: SpinLockGuard<ProcFSInode> = result.root_inode.0.lock(); in new()
270 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
271 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
283 let proc: Arc<dyn IndexNode> = self.root_inode(); in register_pid()
305 let proc: Arc<dyn IndexNode> = self.root_inode(); in unregister_pid()
/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dfs.rs72 root_inode: Arc<LockedFATInode>, field
230 fn root_inode(&self) -> Arc<dyn crate::filesystem::vfs::IndexNode> { in root_inode() method
231 return self.root_inode.clone(); in root_inode()
285 let root_inode: Arc<LockedFATInode> = Arc::new(LockedFATInode(SpinLock::new(FATInode { in new() localVariable
318 root_inode: root_inode, in new()
322 let mut root_guard: SpinLockGuard<FATInode> = result.root_inode.0.lock(); in new()
324 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
325 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()