Home
last modified time | relevance | path

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

/DragonOS-0.1.8/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()
65 root_inode in vfs_init()
73 let _t = root_inode in vfs_init()
83 let _t = root_inode in vfs_init()
93 let _t = root_inode in vfs_init()
100 let root_inode = ROOT_INODE().list().expect("VFS init failed"); in vfs_init() localVariable
101 if root_inode.len() > 0 { in vfs_init()
[all …]
Dmount.rs72 inner_inode: self.inner_filesystem.root_inode(), in mountpoint_root_inode()
105 return Ok(self.inner_inode.fs().root_inode().metadata()?.inode_id in is_mountpoint_root()
341 fn root_inode(&self) -> Arc<dyn IndexNode> { in root_inode() method
343 Some(inode) => return inode.mount_fs.root_inode(), in root_inode()
Dmod.rs519 fn root_inode(&self) -> Arc<dyn IndexNode>; in root_inode() method
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs29 root_inode: Arc<LockedDevFSInode>, field
37 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
38 return self.root_inode.clone(); in root_inode()
58 let devfs: Arc<DevFS> = Arc::new(DevFS { root_inode: root }); in new()
61 let mut root_guard: SpinLockGuard<DevFSInode> = devfs.root_inode.0.lock(); in new()
62 root_guard.parent = Arc::downgrade(&devfs.root_inode); in new()
63 root_guard.self_ref = Arc::downgrade(&devfs.root_inode); in new()
69 let root: &Arc<LockedDevFSInode> = &devfs.root_inode; in new()
85 let dev_root: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_bultinin_device()
103 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_device()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs71 root_inode: Arc<LockedSysFSInode>, field
79 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
80 return self.root_inode.clone(); in root_inode()
100 let sysfs: Arc<SysFS> = Arc::new(SysFS { root_inode: root }); in new()
103 let mut root_guard: SpinLockGuard<SysFSInode> = sysfs.root_inode.0.lock(); in new()
104 root_guard.parent = Arc::downgrade(&sysfs.root_inode); in new()
105 root_guard.self_ref = Arc::downgrade(&sysfs.root_inode); in new()
111 let root: &Arc<LockedSysFSInode> = &sysfs.root_inode; in new()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs32 root_inode: Arc<LockedRamFSInode>, field
57 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
58 return self.root_inode.clone(); in root_inode()
102 let result: Arc<RamFS> = Arc::new(RamFS { root_inode: root }); in new()
105 let mut root_guard: SpinLockGuard<RamFSInode> = result.root_inode.0.lock(); in new()
106 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
107 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs72 root_inode: Arc<LockedProcFSInode>, field
220 fn root_inode(&self) -> Arc<dyn super::vfs::IndexNode> { in root_inode() method
221 return self.root_inode.clone(); in root_inode()
268 let result: Arc<ProcFS> = Arc::new(ProcFS { root_inode: root }); in new()
271 let mut root_guard: SpinLockGuard<ProcFSInode> = result.root_inode.0.lock(); in new()
272 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
273 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
285 let proc: Arc<dyn IndexNode> = self.root_inode(); in register_pid()
307 let proc: Arc<dyn IndexNode> = self.root_inode(); in unregister_pid()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs71 root_inode: Arc<LockedFATInode>, field
229 fn root_inode(&self) -> Arc<dyn crate::filesystem::vfs::IndexNode> { in root_inode() method
230 return self.root_inode.clone(); in root_inode()
291 let root_inode: Arc<LockedFATInode> = Arc::new(LockedFATInode(SpinLock::new(FATInode { in new() localVariable
324 root_inode: root_inode, in new()
328 let mut root_guard: SpinLockGuard<FATInode> = result.root_inode.0.lock(); in new()
330 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
331 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()