Home
last modified time | relevance | path

Searched refs:children (Results 1 – 12 of 12) sorted by relevance

/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs115 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 Dmod.rs60 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 Ddevice_node.rs31 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 Dfdt.rs352 for child in node.children() { in fdt_scan_reserved_mem()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs249 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 Dmod.rs119 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 Dmod.rs102 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 Dmod.rs40 children: LinkedList<Arc<Cgroup>>, field
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs112 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 Dmod.rs648 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 Dexit.rs154 let rd_childen = current_pcb.children.read(); in do_wait()
/DragonOS/kernel/src/arch/riscv64/init/
H A Dmod.rs91 for child in node.children() { in print_node()