Home
last modified time | relevance | path

Searched refs:String (Results 1 – 17 of 17) sorted by relevance

/DragonOS-0.1.5/kernel/src/filesystem/vfs/
Dmod.rs11 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()
Dfile.rs3 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()
Dmount.rs303 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/
Dmod.rs5 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/
Dmod.rs17 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 …]
Dnull_dev.rs11 string::String,
91 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
Dzero_dev.rs11 string::String,
91 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
/DragonOS-0.1.5/kernel/src/filesystem/procfs/
Dmod.rs7 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/
Dbuild.rs12 let out_path = PathBuf::from(String::from("src/include/internal/bindings/")); in main()
/DragonOS-0.1.5/kernel/
Dbuild.rs12 let out_path = PathBuf::from(String::from("src/include/bindings/")); in main()
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dahci_inode.rs13 string::String,
96 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
Dmod.rs24 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()
Dahcidisk.rs18 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/
Dfs.rs6 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 …]
Dentry.rs5 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/
Dps2_keyboard.rs152 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, i32> { in list() argument
/DragonOS-0.1.5/kernel/src/libs/
Dprintk.rs63 …$crate::libs::printk::PrintkWriter.__write_string((alloc::string::String::from("[ INFO ] ")+ alloc…