/DragonOS/kernel/src/process/ |
H A D | stdio.rs | 7 ROOT_INODE, 23 let tty_inode = ROOT_INODE() in stdio_init()
|
H A D | exec.rs | 10 ROOT_INODE, 121 let inode = ROOT_INODE().lookup(file_path)?; in new()
|
/DragonOS/kernel/src/namespaces/ |
H A D | mnt_namespace.rs | 22 use crate::filesystem::vfs::ROOT_INODE; 80 root: ROOT_INODE(), in new() 81 pwd: ROOT_INODE(), in new() 129 nsset.fs.lock().set_pwd(ROOT_INODE()); in install() 130 nsset.fs.lock().set_root(ROOT_INODE()); in install()
|
H A D | namespace.rs | 5 use crate::filesystem::vfs::{IndexNode, ROOT_INODE}; 33 let inode = ROOT_INODE().find("proc").unwrap_or_else(|_| ROOT_INODE()); in new()
|
H A D | pid_namespace.rs | 9 use crate::filesystem::vfs::{IndexNode, ROOT_INODE}; 80 stashed: ROOT_INODE(), in new() 133 stashed: ROOT_INODE(), in alloc_pid()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | core.rs | 52 pub fn ROOT_INODE() -> Arc<dyn IndexNode> { in ROOT_INODE() function 76 let root_entries = ROOT_INODE().list().expect("VFS init failed"); in vfs_init() 98 .mount_from(ROOT_INODE().find("proc").expect("proc not mounted!")) in migrate_virtual_filesystem() 103 .mount_from(ROOT_INODE().find("dev").expect("dev not mounted!")) in migrate_virtual_filesystem() 108 .mount_from(ROOT_INODE().find("sys").expect("sys not mounted!")) in migrate_virtual_filesystem()
|
H A D | utils.rs | 10 use super::{fcntl::AtFlags, FileType, IndexNode, ROOT_INODE}; 45 let mut inode = ROOT_INODE(); in user_path_at()
|
H A D | open.rs | 10 FileType, IndexNode, MAX_PATHLEN, ROOT_INODE, VFS_MAX_FOLLOW_SYMLINK_TIMES, 193 ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_sys_openat2()
|
H A D | syscall.rs | 33 Dirent, FileType, IndexNode, SuperBlock, FSMAKER, MAX_PATHLEN, ROOT_INODE, 728 match ROOT_INODE().lookup_follow_symlink(&new_path, VFS_MAX_FOLLOW_SYMLINK_TIMES) { in chdir() 1041 let old_parent_inode = ROOT_INODE() in do_renameat2() 1044 let new_parent_inode = ROOT_INODE() in do_renameat2() 1379 let inode = ROOT_INODE().lookup_follow_symlink(&remain_path, MAX_PATHLEN)?; in statfs() 1517 ROOT_INODE().lookup_follow_symlink(path, VFS_MAX_FOLLOW_SYMLINK_TIMES); in mknod() 1526 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE() in mknod()
|
H A D | mod.rs | 33 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS}; 647 (ROOT_INODE().clone(), String::from(rest)) in do_lookup_follow_symlink()
|
H A D | mount.rs | 17 filesystem::vfs::ROOT_INODE, 223 while current.metadata()?.inode_id != ROOT_INODE().metadata()?.inode_id { in do_absolute_path()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | mod.rs | 11 filesystem::vfs::ROOT_INODE, 45 ROOT_INODE() in sysfs_init()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | unix98pty.rs | 14 file::FileMode, syscall::ModeType, FilePrivateData, FileType, MountFS, ROOT_INODE, 223 ROOT_INODE().lookup_follow_symlink("/dev/pts", VFS_MAX_FOLLOW_SYMLINK_TIMES)?; in close() 254 ROOT_INODE().lookup_follow_symlink("/dev/pts", VFS_MAX_FOLLOW_SYMLINK_TIMES)?; in ptmx_open()
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | mod.rs | 7 use super::vfs::{FSMAKER, ROOT_INODE}; 155 let upper_inode = ROOT_INODE() in make_overlayfs() 173 … let lower_inode = ROOT_INODE().lookup(dir).map_err(|_| SystemError::EINVAL)?; // 处理错误 in make_overlayfs()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 6 core::{generate_inode_id, ROOT_INODE}, 581 let devfs_inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().find("dev"); 618 ROOT_INODE() in devfs_init()
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 18 core::{generate_inode_id, ROOT_INODE}, 807 let procfs_inode = ROOT_INODE().find("proc")?; in procfs_register_pid() 824 let procfs_inode: Arc<dyn IndexNode> = ROOT_INODE().find("proc")?; in procfs_unregister_pid() 844 ROOT_INODE() in procfs_init()
|