Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs38 parent: NodePtr<K, V>, field
98 parent: NodePtr::null(), in new()
151 self.parent().left() == *self in is_left_child()
156 self.parent().right() == *self in is_right_child()
184 if temp.parent().is_null() { in next()
188 return temp.parent(); in next()
190 temp = temp.parent(); in next()
202 if temp.parent().is_null() { in prev()
206 return temp.parent(); in prev()
208 temp = temp.parent(); in prev()
[all …]
Dbitree.c43 …create_node(struct bt_node_t *left, struct bt_node_t *right, struct bt_node_t *parent, void *value) in bt_create_node() argument
52 node->parent = parent; in bt_create_node()
84 insert_node->parent = last_node; in bt_insert()
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()
188 to_delete->parent->left = to_delete_son; in bt_delete()
190 to_delete->parent->right = to_delete_son; in bt_delete()
/DragonOS-0.1.8/kernel/src/common/
Dbitree.h8 struct bt_node_t *parent; member
43 …reate_node(struct bt_node_t *left, struct bt_node_t *right, struct bt_node_t *parent, void *value);
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs104 root_guard.parent = Arc::downgrade(&sysfs.root_inode); in new()
252 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
304 parent: guard.self_ref.clone(), in do_create_with_data()
403 parent: Weak<LockedSysFSInode>, field
420 parent: Weak<LockedSysFSInode>, in new_with_parent()
426 parent: parent, in new_with_parent()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs62 root_guard.parent = Arc::downgrade(&devfs.root_inode); in new()
200 parent: Weak<LockedDevFSInode>, field
217 parent: Weak<LockedDevFSInode>, in new_with_parent()
223 parent: parent, in new_with_parent()
307 parent: guard.self_ref.clone(), in do_create_with_data()
380 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs43 parent: Weak<LockedRamFSInode>, field
79 parent: Weak::default(), in new()
106 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
250 parent: inode.self_ref.clone(), in create_with_data()
386 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs90 parent: Weak<LockedProcFSInode>, field
241 parent: Weak::default(), in new()
272 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
492 parent: inode.self_ref.clone(), in create_with_data()
601 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
DVFS.h54 struct vfs_dir_entry_t *parent; member
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs91 parent: Weak<LockedFATInode>, field
163 parent: Weak<LockedFATInode>, in new()
173 parent: parent, in new()
292 parent: Weak::default(), in new()
330 root_guard.parent = Arc::downgrade(&result.root_inode); in new()