/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 115 children: SpinLock::new(HashMap::new()), in create_root_inode() 135 children: SpinLock<HashMap<String, Arc<KernFSInode>>>, field 248 .children in find() 262 let children = self.children.lock(); in get_entry_name() localVariable 263 let r = children in get_entry_name() 310 self.children in list() 411 children: SpinLock::new(HashMap::new()), in new() 544 self.children.lock().insert(name, new_inode.clone()); in inner_create() 567 let mut children = self.children.lock(); in remove() localVariable 568 let inode = children.get(name).ok_or(SystemError::ENOENT)?; in remove() [all …]
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 60 children: BTreeMap<DName, Arc<LockedRamFSInode>>, field 78 children: BTreeMap::new(), in new() 316 if inode.children.contains_key(&name) { in create_with_data() 324 children: BTreeMap::new(), in create_with_data() 351 inode.children.insert(name, result.clone()); in create_with_data() 375 if inode.children.contains_key(&name) { in link() 380 .children in link() 401 let to_delete = inode.children.get(&name).ok_or(SystemError::ENOENT)?; in unlink() 408 inode.children.remove(&name); in unlink() 420 let to_delete = inode.children.get(&name).ok_or(SystemError::ENOENT)?; in rmdir() [all …]
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 31 children: Vec<Arc<DeviceNode>>, field 52 children: Vec::new(), in new() 77 pub fn children(&self) -> Vec<Arc<DeviceNode>> { in children() method 78 self.inner.lock().children.clone() in children() 82 self.inner.lock().children.push(child); in add_child()
|
H A D | fdt.rs | 352 for child in node.children() { in fdt_scan_reserved_mem()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 249 children: BTreeMap<DName, Arc<dyn IndexNode>>, field 272 children: BTreeMap::new(), in new_with_parent() 299 if guard.children.contains_key(&DName::from(name)) { in add_dir() 322 if this.children.contains_key(&name) { in add_dev() 326 this.children.insert(name, dev); in add_dev() 334 .children in remove() 355 if guard.children.contains_key(&name) { in do_create_with_data() 363 children: BTreeMap::new(), in do_create_with_data() 388 guard.children.insert(name, result.clone()); in do_create_with_data() 440 .children in find() [all …]
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 119 children: BTreeMap<DName, Arc<LockedProcFSInode>>, field 328 children: BTreeMap::new(), in new() 607 if inode.children.contains_key(&name) { in create_with_data() 616 children: BTreeMap::new(), in create_with_data() 646 inode.children.insert(name, result.clone()); in create_with_data() 669 if inode.children.contains_key(&name) { in link() 674 .children in link() 695 let to_delete = inode.children.get(&name).ok_or(SystemError::ENOENT)?; in unlink() 701 inode.children.remove(&name); in unlink() 733 .children in find() [all …]
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 102 children: Some(BTreeMap::new()), in new() 131 children: Option<BTreeMap<String, Arc<TtyDevice>>>, field 137 self.children.as_ref().unwrap() in children_unchecked() 141 self.children.as_mut().unwrap() in children_unchecked_mut()
|
/DragonOS/kernel/src/cgroup/ |
H A D | mod.rs | 40 children: LinkedList<Arc<Cgroup>>, field
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 112 children: HashMap<String, Arc<LockedFATInode>>, field 154 if let Some(entry) = self.children.get(&search_name) { in find() 170 self.children.insert(search_name, entry_inode.clone()); in find() 202 children: HashMap::new(), in new() 352 children: HashMap::new(), in new() 1570 if !guard.children.contains_key(&search_name) in list() 1583 guard.children.insert(search_name, entry_inode.clone()); in list() 1619 let nod = guard.children.remove(&to_search_name(name)); in unlink() 1654 guard.children.remove(&to_search_name(name)); in rmdir() 1677 guard.children.insert(to_search_name(name), target.clone()); in rmdir() [all …]
|
/DragonOS/kernel/src/process/ |
H A D | mod.rs | 648 children: RwLock<Vec<Pid>>, field 748 children: RwLock::new(Vec::new()), in do_create_pcb() 788 let mut children = ppcb_arc.children.write_irqsave(); in do_create_pcb() localVariable 789 children.push(pcb.pid()); in do_create_pcb() 955 let childen_guard = self.children.write(); in adopt_childen() 956 let mut init_childen_guard = init_pcb.children.write(); in adopt_childen() 1063 ppcb.children in drop()
|
H A D | exit.rs | 154 let rd_childen = current_pcb.children.read(); in do_wait()
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | mod.rs | 91 for child in node.children() { in print_node()
|