/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | mod.rs | 11 use alloc::{string::String, sync::Arc, vec::Vec}; 282 fn get_entry_name(&self, _ino: InodeId) -> Result<String, i32> { in get_entry_name() argument 293 fn get_entry_name_and_metadata(&self, ino: InodeId) -> Result<(String, Metadata), i32> { in get_entry_name_and_metadata() argument 320 fn list(&self) -> Result<Vec<String>, i32>; in list() argument 373 (ROOT_INODE().clone(), String::from(rest)) in lookup_follow_symlink() 376 (self.find(".")?, String::from(path)) in lookup_follow_symlink() 392 name = String::from(&rest_path[0..pos]); in lookup_follow_symlink() 394 rest_path = String::from(&rest_path[pos + 1..]); in lookup_follow_symlink() 398 rest_path = String::new(); in lookup_follow_symlink() 416 let link_path = String::from( in lookup_follow_symlink()
|
D | file.rs | 3 use alloc::{boxed::Box, string::String, sync::Arc, vec::Vec}; 90 readdir_subdirs_name: Vec<String>, 162 pub fn get_entry_name(&self, ino: usize) -> Result<String, i32> { in get_entry_name() argument 235 let name: String = self.readdir_subdirs_name.remove(0); in readdir()
|
D | mount.rs | 303 fn get_entry_name(&self, ino: InodeId) -> Result<alloc::string::String, i32> { in get_entry_name() argument 311 ) -> Result<(alloc::string::String, super::Metadata), i32> { in get_entry_name_and_metadata() argument 321 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, i32> { in list() argument
|
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 5 string::String, 49 children: BTreeMap<String, Arc<LockedRamFSInode>>, 281 inode.children.insert(String::from(name), result.clone()); in create_with_data() 310 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link() 399 fn get_entry_name(&self, ino: InodeId) -> Result<String, i32> { in get_entry_name() argument 407 return Ok(String::from(".")); in get_entry_name() 410 return Ok(String::from("..")); in get_entry_name() 415 let mut key: Vec<String> = inode in get_entry_name() 431 fn list(&self) -> Result<Vec<String>, i32> { in list() argument 437 let mut keys: Vec<String> = Vec::new(); in list() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/devfs/ |
D | mod.rs | 17 string::{String, ToString}, 189 children: BTreeMap<String, Arc<dyn IndexNode>>, 314 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data() 371 fn get_entry_name(&self, ino: super::vfs::InodeId) -> Result<String, i32> { in get_entry_name() argument 379 return Ok(String::from(".")); in get_entry_name() 382 return Ok(String::from("..")); in get_entry_name() 387 let mut key: Vec<String> = inode in get_entry_name() 407 fn list(&self) -> Result<Vec<String>, i32> { in list() argument 413 let mut keys: Vec<String> = Vec::new(); in list() 414 keys.push(String::from(".")); in list() [all …]
|
D | null_dev.rs | 11 string::String, 91 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
|
D | zero_dev.rs | 11 string::String, 91 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 7 string::{String, ToString}, 94 children: BTreeMap<String, Arc<LockedProcFSInode>>, 143 String::from_utf8(tmp_name).unwrap_or("NULL".to_string()) in open_status() 523 inode.children.insert(String::from(name), result.clone()); in create_with_data() 552 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link() 610 fn get_entry_name(&self, ino: InodeId) -> Result<String, i32> { in get_entry_name() argument 618 return Ok(String::from(".")); in get_entry_name() 621 return Ok(String::from("..")); in get_entry_name() 626 let mut key: Vec<String> = inode in get_entry_name() 642 fn list(&self) -> Result<Vec<String>, i32> { in list() argument [all …]
|
/DragonOS-0.1.5/user/libs/libc/ |
D | build.rs | 12 let out_path = PathBuf::from(String::from("src/include/internal/bindings/")); in main()
|
/DragonOS-0.1.5/kernel/ |
D | build.rs | 12 let out_path = PathBuf::from(String::from("src/include/bindings/")); in main()
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 13 string::String, 96 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
|
D | mod.rs | 24 use alloc::{format, string::String, sync::Arc, vec::Vec}; 169 pub fn get_disks_by_name(name: String) -> Result<Arc<LockedAhciDisk>, i32> { in get_disks_by_name()
|
D | ahcidisk.rs | 18 use alloc::{string::String, sync::Arc, vec::Vec}; 26 pub name: String, 315 name: String, in new() argument
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 6 string::String, 97 children: BTreeMap<String, Arc<LockedFATInode>>, 623 dir_name: String::from("/"), in root_dir() 631 dir_name: String::from("/"), in root_dir() 1460 fn list(&self) -> Result<Vec<String>, i32> { in list() argument 1469 let mut ret: Vec<String> = Vec::new(); in list() 1475 let name: String = ent.name(); in list() 1581 fn get_entry_name(&self, ino: InodeId) -> Result<String, i32> { in get_entry_name() argument 1588 return Ok(String::from(".")); in get_entry_name() 1591 return Ok(String::from("..")); in get_entry_name() [all …]
|
D | entry.rs | 5 string::{String, ToString}, 58 pub file_name: String, 362 pub dir_name: String, 1143 fn name_to_string(&self) -> String { in name_to_string() argument 1178 return String::from_iter(iter); in name_to_string() 1226 name: String, in to_dir_entry_with_long_name() argument 1603 pub fn short_name(&self) -> String { in short_name() argument 1613 return String::from("/"); in short_name() 1691 pub fn name(&self) -> String { in name() argument 2141 fn to_string(&self) -> String { in to_string() argument [all …]
|
/DragonOS-0.1.5/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 152 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, i32> { in list() argument
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | printk.rs | 63 …$crate::libs::printk::PrintkWriter.__write_string((alloc::string::String::from("[ INFO ] ")+ alloc…
|