/DragonOS-0.1.9/tools/debugging/logmonitor/src/ |
D | logging.rs | 15 let channel: (mpsc::Sender<String>, mpsc::Receiver<String>) = mpsc::channel::<String>(); in init() 28 pub tui_receiver: Option<mpsc::Receiver<String>>, 32 pub fn new(tui_receiver: Option<mpsc::Receiver<String>>) -> Self { in new() 38 sender: mpsc::Sender<String>, 42 pub fn new(sender: mpsc::Sender<String>) -> Self { in new() 48 fn log(&self, message: String) { in log() argument
|
D | command.rs | 13 pub kmem: String, 25 fn kmem_file_parser(s: &str) -> Result<String, String> { in kmem_file_parser() argument
|
D | app.rs | 26 logs: Vec<String>, 29 backend_log_receiver: Option<std::sync::mpsc::Receiver<String>>, 56 pub fn set_backend_log_receiver(&mut self, receiver: std::sync::mpsc::Receiver<String>) { in set_backend_log_receiver() argument 71 .map(|rv| rv.try_iter().collect::<Vec<String>>()); in handle_logs_on_tick() 97 pub fn push_log(&mut self, log: String) { in push_log() argument 101 pub fn logs(&self) -> &Vec<String> { in logs() argument
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/process/ |
D | syscall.rs | 1 use alloc::{string::String, vec::Vec}; 8 path: String, in do_execve() argument 9 argv: Vec<String>, in do_execve() argument 10 envp: Vec<String>, in do_execve() argument
|
D | mod.rs | 1 use alloc::{string::String, sync::Arc, vec::Vec}; 25 pub unsafe fn arch_switch_to_user(path: String, argv: Vec<String>, envp: Vec<String>) -> ! { in arch_switch_to_user() argument
|
/DragonOS-0.1.9/kernel/src/libs/intertrait/tests/ |
D | on-trait-impl-assoc-type3.rs | 14 fn concat(&self, prefix: T, a: Self::I1, b: Self::I2) -> String; in concat() argument 18 impl Concat<String> for Data { 22 fn concat(&self, prefix: String, a: Self::I1, b: Self::I2) -> String { in concat() argument 33 let concat = source.cast::<dyn Concat<String, I1 = i32, I2 = &'static str>>(); in test_cast_to_on_trait_impl_with_assoc_type3()
|
D | on-trait-impl-assoc-type2.rs | 14 fn concat(&self, a: Self::I1, b: Self::I2) -> String; in concat() argument 22 fn concat(&self, a: Self::I1, b: Self::I2) -> String { in concat() argument
|
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/ |
D | symlink.rs | 3 string::{String, ToString}, 27 name: String, in create_link() argument 41 pub fn remove_link(&self, _kobj: &Arc<dyn KObject>, _name: String) { in remove_link() argument 49 name: String, in do_create_link() argument 68 name: String, in do_create_link_sd() argument 100 name: String, in create_link_sd() argument
|
D | dir.rs | 3 string::{String, ToString}, 89 pub(super) fn kernfs_path(&self, parent: &Arc<KernFSInode>) -> String { in kernfs_path() argument 104 let mut path = String::new(); in kernfs_path()
|
/DragonOS-0.1.9/kernel/src/init/ |
D | initial_kthread.rs | 3 use alloc::string::String; 63 let path = String::from("/bin/dragonreach"); in switch_to_user() 64 let argv = vec![String::from("/bin/dragonreach")]; in switch_to_user() 65 let envp = vec![String::from("PATH=/")]; in switch_to_user()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | utils.rs | 1 use alloc::{string::String, sync::Arc}; 40 ) -> Result<(Arc<dyn IndexNode>, String), SystemError> { in user_path_at() argument 63 ret_path = String::from(path); in user_path_at() 71 ret_path = String::from(path); in user_path_at()
|
D | mod.rs | 11 use alloc::{string::String, sync::Arc, vec::Vec}; 317 fn get_entry_name(&self, _ino: InodeId) -> Result<String, SystemError> { in get_entry_name() argument 328 fn get_entry_name_and_metadata(&self, ino: InodeId) -> Result<(String, Metadata), SystemError> { in get_entry_name_and_metadata() argument 360 fn list(&self) -> Result<Vec<String>, SystemError>; in list() argument 441 (ROOT_INODE().clone(), String::from(rest)) in lookup_follow_symlink() 444 (self.find(".")?, String::from(path)) in lookup_follow_symlink() 460 name = String::from(&rest_path[0..pos]); in lookup_follow_symlink() 462 rest_path = String::from(&rest_path[pos + 1..]); in lookup_follow_symlink() 466 rest_path = String::new(); in lookup_follow_symlink() 484 let link_path = String::from( in lookup_follow_symlink()
|
/DragonOS-0.1.9/build-scripts/kernel_build/src/kconfig/ |
D | mod.rs | 38 let mut cfg_content = String::new(); in make_compile_cfg() 150 name: String, 158 pub fn new(name: String, path: PathBuf, enable: bool) -> Module { in new() argument 162 pub fn name(&self) -> String { in name() argument 178 name: String, 184 pub fn new(name: String, enable: bool) -> Feature { in new() argument 188 pub fn name(&self) -> String { in name() argument
|
/DragonOS-0.1.9/kernel/src/driver/open_firmware/ |
D | device_node.rs | 11 string::String, 22 full_name_allocated: Option<String>, 40 full_name_allocated: Option<String>, in new() argument 141 fn name(&self) -> String { in name() argument 145 fn set_name(&self, _name: String) {} in set_name() argument 163 name: String, 170 pub const fn new(name: String, value: Vec<u8>, battr: Option<Arc<dyn BinAttribute>>) -> Self { in new() argument
|
/DragonOS-0.1.9/kernel/src/driver/net/ |
D | mod.rs | 1 use alloc::string::String; 20 fn name(&self) -> String; in name() argument
|
/DragonOS-0.1.9/kernel/src/filesystem/procfs/ |
D | log.rs | 3 use alloc::string::String; 67 message: String, 71 pub fn new(timestamp: TimeSpec, level: LogLevel, message: String) -> Self { in new()
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | mod.rs | 4 string::String, 91 name: String::from(""), in create_root_inode() 122 children: SpinLock<HashMap<String, Arc<KernFSInode>>>, 126 name: String, 137 symlink_target_absolute_path: Option<String>, 240 fn get_entry_name(&self, ino: InodeId) -> Result<String, SystemError> { in get_entry_name() argument 254 fn get_entry_name_and_metadata(&self, ino: InodeId) -> Result<(String, Metadata), SystemError> { in get_entry_name_and_metadata() argument 284 fn list(&self) -> Result<Vec<String>, SystemError> { in list() argument 290 let mut keys: Vec<String> = Vec::new(); in list() 291 keys.push(String::from(".")); in list() [all …]
|
/DragonOS-0.1.9/tools/debugging/logmonitor/src/backend/ |
D | loader.rs | 58 pub fn add_symbol(&mut self, sym: Sym, name: String) { in add_symbol() argument 75 pub fn add_symbol(&mut self, sym: Sym, name: String) { in add_symbol() argument 92 name: String, 96 pub fn new(sym: Sym, name: String) -> Self { in new()
|
D | error.rs | 12 message: Option<String>, 16 pub fn new(kind: BackendErrorKind, message: Option<String>) -> Self { in new()
|
/DragonOS-0.1.9/kernel/src/driver/base/ |
D | kset.rs | 2 string::String, 47 pub fn new(name: String) -> Arc<Self> { in new() 74 name: String, in new_and_add() argument 194 fn name(&self) -> String { in name() argument 198 fn set_name(&self, name: String) { in set_name() argument 222 name: String, 227 fn new(name: String) -> Self { in new()
|
D | cpu.rs | 4 string::{String, ToString}, 74 fn name(&self) -> String { in name() argument 78 fn dev_name(&self) -> String { in dev_name() argument 129 name: String, 230 fn name(&self) -> String { in name() argument 234 fn set_name(&self, name: String) { in set_name() argument
|
/DragonOS-0.1.9/kernel/src/driver/acpi/ |
D | bus.rs | 10 string::{String, ToString}, 63 fn name(&self) -> String { in name() argument 67 fn dev_name(&self) -> String { in dev_name() argument
|
/DragonOS-0.1.9/kernel/src/process/ |
D | exec.rs | 3 use alloc::{collections::BTreeMap, string::String, sync::Arc, vec::Vec}; 69 Other(String), 199 pub proc_name: String, 200 pub args: Vec<String>, 201 pub envs: Vec<String>, 208 proc_name: String::new(), in new()
|
/DragonOS-0.1.9/kernel/src/filesystem/ramfs/ |
D | mod.rs | 6 string::String, 51 children: BTreeMap<String, Arc<LockedRamFSInode>>, 300 inode.children.insert(String::from(name), result.clone()); in create_with_data() 329 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link() 418 fn get_entry_name(&self, ino: InodeId) -> Result<String, SystemError> { in get_entry_name() argument 426 return Ok(String::from(".")); in get_entry_name() 429 return Ok(String::from("..")); in get_entry_name() 434 let mut key: Vec<String> = inode in get_entry_name() 461 fn list(&self) -> Result<Vec<String>, SystemError> { in list() argument 467 let mut keys: Vec<String> = Vec::new(); in list() [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/syscall/ |
D | mod.rs | 14 use alloc::string::String; 141 let path = String::from("/bin/shell.elf"); in rs_exec_init_process() 142 let argv = vec![String::from("/bin/shell.elf")]; in rs_exec_init_process() 143 let envp = vec![String::from("PATH=/bin")]; in rs_exec_init_process()
|