Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs47 children: BTreeMap<String, Arc<LockedRamFSInode>>, field
81 children: BTreeMap::new(), in new()
244 if inode.children.contains_key(name) { in create_with_data()
252 children: BTreeMap::new(), in create_with_data()
277 inode.children.insert(String::from(name), result.clone()); in create_with_data()
300 if inode.children.contains_key(name) { in link()
305 .children in link()
325 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink()
332 inode.children.remove(name); in unlink()
343 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in rmdir()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs225 .children in get_entry_name()
227 .filter(|k| inode.children.get(*k).unwrap().metadata().unwrap().inode_id == ino) in get_entry_name()
260 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
278 keys.append(&mut self.0.lock().children.keys().cloned().collect()); in list()
298 if guard.children.contains_key(_name) { in do_create_with_data()
306 children: BTreeMap::new(), in do_create_with_data()
330 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data()
342 if guard.children.contains_key(name) { in add_dir()
362 if this.children.contains_key(name) { in add_file()
366 this.children.insert(name.to_string(), file); in add_file()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs204 children: BTreeMap<String, Arc<dyn IndexNode>>, field
225 children: BTreeMap::new(), in new_with_parent()
251 if guard.children.contains_key(name) { in add_dir()
268 if this.children.contains_key(name) { in add_dev()
272 this.children.insert(name.to_string(), dev); in add_dev()
280 .children in remove()
301 if guard.children.contains_key(_name) { in do_create_with_data()
309 children: BTreeMap::new(), in do_create_with_data()
333 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data()
384 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs94 children: BTreeMap<String, Arc<LockedProcFSInode>>, field
243 children: BTreeMap::new(), in new()
485 if inode.children.contains_key(name) { in create_with_data()
494 children: BTreeMap::new(), in create_with_data()
523 inode.children.insert(String::from(name), result.clone()); in create_with_data()
546 if inode.children.contains_key(name) { in link()
551 .children in link()
571 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink()
575 inode.children.remove(name); in unlink()
605 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs96 children: BTreeMap<String, Arc<LockedFATInode>>, field
128 if let Some(entry) = self.children.get(&name.to_uppercase()) { in find()
143 self.children in find()
175 children: BTreeMap::new(), in new()
294 children: BTreeMap::new(), in new()
1524 if guard.children.contains_key(&name.to_uppercase()) == false in list()
1536 .children in list()
1569 guard.children.remove(&name.to_uppercase()); in unlink()
1596 guard.children.remove(&name.to_uppercase()); in rmdir()
1620 guard.children.insert(name.to_uppercase(), target.clone()); in rmdir()
[all …]