Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 13 of 13) sorted by relevance

/DragonOS/user/apps/test-chown/src/
H A Dmain.rs18 fn print_file_owner_group(filename: &str) -> Result<(), Error> { in print_file_owner_group()
19 let metadata = std::fs::metadata(filename)?; in print_file_owner_group()
30 fn test_fchownat(filename: &str, new_uid: uid_t, new_gid: gid_t, flags: i32) -> Result<(), Error> { in test_fchownat()
31 let c_filename = CString::new(filename)?; in test_fchownat()
37 print_file_owner_group(filename)?; in test_fchownat()
41 fn test_chown(filename: &str, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_chown()
42 let c_filename = CString::new(filename)?; in test_chown()
48 print_file_owner_group(filename)?; in test_chown()
75 let filename = "/mnt/myramfs/testfile.txt"; in main() localVariable
91 let mut file = File::create(filename)?; in main()
[all …]
/DragonOS/kernel/crates/rbpf/examples/
H A Dto_json.rs58 let filename = "examples/load_elf__block_a_port.elf"; in main() localVariable
60 let path = PathBuf::from(filename); in main()
H A Dload_elf.rs51 let filename = "examples/load_elf__block_a_port.elf"; in main() localVariable
53 let path = PathBuf::from(filename); in main()
/DragonOS/kernel/src/filesystem/vfs/
H A Dcore.rs192 let (filename, parent_path) = rsplit_path(&remain_path); in do_remove_dir()
195 if filename == "." { in do_remove_dir()
208 let target_inode = parent_inode.find(filename)?; in do_remove_dir()
214 parent_inode.rmdir(filename)?; in do_remove_dir()
240 let (filename, parent_path) = rsplit_path(&remain_path); in do_unlink_at()
250 parent_inode.unlink(filename)?; in do_unlink_at()
H A Dopen.rs190 let (filename, parent_path) = rsplit_path(&path); in do_sys_openat2()
196 filename, in do_sys_openat2()
H A Dmount.rs496 filename: &str, in mknod()
500 let inner_inode = self.inner_inode.mknod(filename, mode, dev_t)?; in mknod()
H A Dsyscall.rs1523 let (filename, parent_path) = rsplit_path(path); in mknod()
1529 parent_inode.mknod(filename, mode, dev_t)?; in mknod()
/DragonOS/kernel/src/driver/acpi/
H A Dsysfs.rs154 filename: String, field
163 filename: "".to_string(), in new()
193 r.filename = format!("{}{}", r.name, r.instance); in new()
195 r.filename = r.name.clone(); in new()
217 return &self.filename; in name()
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md328 list <filename>:<function> #显示<filename>文件里面的<funtion>函数的源代码片段
329 list <filename>:<line_number> #显示<filename>文件里面的<line_number>附近的源代码片段
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs566 filename: &str, in mknod()
578 return self.create(filename, FileType::File, mode); in mknod()
581 let filename = DName::from(filename); in mknod() localVariable
606 name: filename.clone(), in mknod()
625 inode.children.insert(filename, nod.clone()); in mknod()
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs422 filename: &str, in mknod()
428 inode.mknod(filename, mode, dev_t) in mknod()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs1796 filename: &str, in mknod()
1808 return self.create(filename, FileType::File, mode); in mknod()
1811 let dname = DName::from(filename); in mknod()
1835 inode.children.insert(to_search_name(filename), nod.clone()); in mknod()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md404 let filename = "examples/load_elf__block_a_port.elf";
406 let path = PathBuf::from(filename);