Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/filesystem/ramfs/
Dmod.rs49 children: BTreeMap<String, Arc<LockedRamFSInode>>, field
83 children: BTreeMap::new(), in new()
248 if inode.children.contains_key(name) { in create_with_data()
256 children: BTreeMap::new(), in create_with_data()
281 inode.children.insert(String::from(name), result.clone()); in create_with_data()
304 if inode.children.contains_key(name) { in link()
309 .children in link()
329 let to_delete = inode.children.get(name).ok_or(-(ENOENT as i32))?; in unlink()
336 inode.children.remove(name); in unlink()
347 let to_delete = inode.children.get(name).ok_or(-(ENOENT as i32))?; in rmdir()
[all …]
/DragonOS-0.1.5/kernel/src/filesystem/devfs/
Dmod.rs189 children: BTreeMap<String, Arc<dyn IndexNode>>, field
210 children: BTreeMap::new(), in new_with_parent()
236 if guard.children.contains_key(name) { in add_dir()
253 if this.children.contains_key(name) { in add_dev()
257 this.children.insert(name.to_string(), dev); in add_dev()
265 .children in remove()
282 if guard.children.contains_key(_name) { in do_create_with_data()
290 children: BTreeMap::new(), in do_create_with_data()
314 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data()
362 return Ok(inode.children.get(name).ok_or(-(ENOENT as i32))?.clone()); in find()
[all …]
/DragonOS-0.1.5/kernel/src/filesystem/procfs/
Dmod.rs94 children: BTreeMap<String, Arc<LockedProcFSInode>>, field
241 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(-(ENOENT as i32))?; in unlink()
575 inode.children.remove(name); in unlink()
605 return Ok(inode.children.get(name).ok_or(-(ENOENT as i32))?.clone()); in find()
[all …]
/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dfs.rs97 children: BTreeMap<String, Arc<LockedFATInode>>, field
129 if let Some(entry) = self.children.get(&name.to_uppercase()) { in find()
144 self.children in find()
176 children: BTreeMap::new(), in new()
288 children: BTreeMap::new(), in new()
1478 if guard.children.contains_key(&name.to_uppercase()) == false in list()
1490 .children in list()
1523 guard.children.remove(&name.to_uppercase()); in unlink()
1551 guard.children.remove(&name.to_uppercase()); in rmdir()
1574 guard.children.insert(name.to_uppercase(), target.clone()); in rmdir()
[all …]