Home
last modified time | relevance | path

Searched refs:to_delete (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.5/kernel/src/libs/
Dbitree.c164 struct bt_node_t *to_delete = NULL, *to_delete_son = NULL; in bt_delete() local
166 to_delete = this_node; in bt_delete()
169 to_delete = bt_get_minimum(this_node->right); in bt_delete()
172 this_node->value = to_delete->value; in bt_delete()
175 if (to_delete->left != NULL) in bt_delete()
176 to_delete_son = to_delete->left; in bt_delete()
178 to_delete_son = to_delete->right; in bt_delete()
181 to_delete_son->parent = to_delete->parent; in bt_delete()
183 if (to_delete->parent == NULL) in bt_delete()
187 if (to_delete->parent->left == to_delete) in bt_delete()
[all …]
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/
Dmod.rs329 let to_delete = inode.children.get(name).ok_or(-(ENOENT as i32))?; in unlink() localVariable
330 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink()
334 to_delete.0.lock().metadata.nlinks -= 1; in unlink()
347 let to_delete = inode.children.get(name).ok_or(-(ENOENT as i32))?; in rmdir() localVariable
348 if to_delete.0.lock().metadata.file_type != FileType::Dir { in rmdir()
352 to_delete.0.lock().metadata.nlinks -= 1; in rmdir()
/DragonOS-0.1.5/kernel/src/filesystem/procfs/
Dmod.rs571 let to_delete = inode.children.get(name).ok_or(-(ENOENT as i32))?; in unlink() localVariable
573 to_delete.0.lock().metadata.nlinks -= 1; in unlink()