/DragonOS/user/apps/test-symlink/src/ |
H A D | main.rs | 14 let dir = "/mnt/myramfs/another"; in main() localVariable 18 fs::create_dir(dir).expect("Failed to create target dir"); in main() 21 assert!(Path::new(dir).exists(), "Target dir was not created"); in main() 36 fs::remove_dir(dir).expect("Failed to remove test_dir"); in main() 40 assert!(!Path::new(dir).exists(), "Directory was not deleted"); in main() 49 let dir = fs::create_dir_all(path); in mount_test_ramfs() localVariable 50 assert!(dir.is_ok(), "mkdir /mnt/myramfs failed"); in mount_test_ramfs()
|
/DragonOS/build-scripts/kernel_build/src/cfiles/ |
H A D | common.rs | 7 DIRS.iter().for_each(|dir| { in setup_common_files() 8 FileUtils::list_all_files(&dir.into(), Some("c"), true) in setup_common_files() 18 DIRS.iter().for_each(|dir| { in setup_common_include_dir() 19 include_dirs.insert(dir.into()); in setup_common_include_dir()
|
H A D | mod.rs | 61 include_dirs.into_iter().for_each(|dir| { in setup_global_include_dir() 62 c.include(dir); in setup_global_include_dir()
|
/DragonOS/user/ |
H A D | Makefile | 44 …dadk --config-dir dadk/config --cache-dir $(DADK_CACHE_DIR) --dragonos-dir $(ROOT_PATH)/bin/sysroo… 45 …dadk --config-dir dadk/config --cache-dir $(DADK_CACHE_DIR) --dragonos-dir $(ROOT_PATH)/bin/sysroo…
|
/DragonOS/user/apps/test-mount/src/ |
H A D | main.rs | 10 let dir = fs::create_dir_all(path); in main() localVariable 11 if dir.is_err() { in main() 22 let dir = fs::create_dir_all(path); in main() localVariable 23 if dir.is_err() { in main()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | dir.rs | 67 let dir: Arc<KernFSInode> = parent.add_dir( in create_dir() localVariable 74 kobj.set_inode(Some(dir.clone())); in create_dir() 76 return Ok(dir); in create_dir()
|
H A D | mod.rs | 3 use self::{dir::SysKernDirPriv, file::SysKernFilePriv}; 18 pub mod dir; module
|
H A D | group.rs | 11 sysfs::{dir::SysKernDirPriv, sysfs_instance, SysFSKernPrivateData},
|
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/ |
H A D | x86_64.rs | 22 DIRS.iter().for_each(|dir| { in setup_files() 23 FileUtils::list_all_files(&arch_path(dir), Some("c"), true) in setup_files()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | build_ebpf.rs | 43 let dir = PathBuf::from("syscall_ebpf-ebpf"); in build_ebpf() localVariable 60 .current_dir(dir) in build_ebpf()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/syscall_ebpf-ebpf/.cargo/ |
H A D | config.toml | 2 target-dir = "../target"
|
/DragonOS/user/apps/test-chown/src/ |
H A D | main.rs | 126 let dir = fs::create_dir_all(path); in mount_test_ramfs() localVariable 127 assert!(dir.is_ok(), "mkdir /mnt/myramfs failed"); in mount_test_ramfs()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | console.rs | 131 dir: ScrollDir, in con_scroll()
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | mod.rs | 173 .map(|(i, dir)| { in make_overlayfs() 174 … let lower_inode = ROOT_INODE().lookup(dir).map_err(|_| SystemError::EINVAL)?; // 处理错误 in make_overlayfs() 176 mnt: Arc::new(OvlInode::new(dir.clone(), None, Some(lower_inode))), in make_overlayfs()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 1559 FATDirEntry::Dir(dir) => { in list() 1562 let dir_iter: FATDirIter = dir.to_iter(guard.fs.upgrade().unwrap()); in list() 1629 let dir = match &guard.inode_type { in unlink() localVariable 1640 dir.check_existence(name, Some(false), guard.fs.upgrade().unwrap())?; in unlink() 1643 let r = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in unlink() 1656 let dir = match &guard.inode_type { in rmdir() localVariable 1667 dir.check_existence(name, Some(true), guard.fs.upgrade().unwrap())?; in rmdir() 1671 dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in rmdir()
|
H A D | entry.rs | 1269 let dir = FATDir { in convert_to_dir_entry() localVariable 1277 return FATDirEntry::Dir(dir); in convert_to_dir_entry() 1310 let dir = FATDir { in convert_to_dir_entry_with_long_name() localVariable 1318 return FATDirEntry::Dir(dir); in convert_to_dir_entry_with_long_name()
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 590 fn scroll(&mut self, dir: ScrollDir, mut nr: usize) { in scroll() 604 .con_scroll(self, self.top, self.bottom, dir, nr) in scroll() 612 if dir == ScrollDir::Up { in scroll() 617 } else if dir == ScrollDir::Down { in scroll()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 404 dir: crate::driver::tty::virtual_terminal::virtual_console::ScrollDir, in con_scroll() 414 match dir { in con_scroll()
|