Home
last modified time | relevance | path

Searched refs:root (Results 1 – 11 of 11) sorted by relevance

/DragonOS-0.1.2/kernel/src/libs/
Dbitree.c8 #define smaller(root, a, b) (root->cmp((a)->value, (b)->value) == -1) argument
9 #define equal(root, a, b) (root->cmp((a)->value, (b)->value) == 0) argument
10 #define greater(root, a, b) (root->cmp((a)->value, (b)->value) == 1) argument
25 struct bt_root_t *root = (struct bt_root_t *)kmalloc(sizeof(struct bt_root_t), 0); in bt_create_tree() local
26 memset((void *)root, 0, sizeof(struct bt_root_t)); in bt_create_tree()
27 root->bt_node = node; in bt_create_tree()
28 root->cmp = cmp; in bt_create_tree()
29 root->release = release; in bt_create_tree()
30 root->size = (node == NULL) ? 0 : 1; in bt_create_tree()
32 return root; in bt_create_tree()
[all …]
/DragonOS-0.1.2/kernel/src/common/
Dbitree.h52 int bt_insert(struct bt_root_t *root, void *value);
62 int bt_query(struct bt_root_t *root, void *value, uint64_t *ret_addr);
71 int bt_delete(struct bt_root_t *root, void *value);
79 int bt_destroy_tree(struct bt_root_t *root);
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c117 struct List *list = &rootfs_sb.root->subdirs_list; in rootfs_add_dir()
118 while (list_next(list) != &rootfs_sb.root->subdirs_list) in rootfs_add_dir()
130 dentry->parent = rootfs_sb.root; in rootfs_add_dir()
131 list_append(&rootfs_sb.root->subdirs_list, &dentry->child_node_list); in rootfs_add_dir()
144 rootfs_sb.root = vfs_alloc_dentry(sizeof("/")); in rootfs_init()
145 struct vfs_dir_entry_t *dentry = rootfs_sb.root; in rootfs_init()
176 struct List *list = &rootfs_sb.root->subdirs_list; in rootfs_migrate()
180 while (list != &rootfs_sb.root->subdirs_list) in rootfs_migrate()
188 tmp->parent = vfs_root_sb->root; in rootfs_migrate()
190 list_append(&vfs_root_sb->root->subdirs_list, &tmp->child_node_list); in rootfs_migrate()
[all …]
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat32.c417 sb_ptr->root = vfs_alloc_dentry(2); in fat32_read_superblock()
419 sb_ptr->root->parent = sb_ptr->root; in fat32_read_superblock()
420 sb_ptr->root->dir_ops = &fat32_dEntry_ops; in fat32_read_superblock()
422 sb_ptr->root->name[0] = '/'; in fat32_read_superblock()
423 sb_ptr->root->name_length = 1; in fat32_read_superblock()
426 sb_ptr->root->dir_inode = vfs_alloc_inode(); in fat32_read_superblock()
427 sb_ptr->root->dir_inode->inode_ops = &fat32_inode_ops; in fat32_read_superblock()
428 sb_ptr->root->dir_inode->file_ops = &fat32_file_ops; in fat32_read_superblock()
429 sb_ptr->root->dir_inode->file_size = 0; in fat32_read_superblock()
431 sb_ptr->root->dir_inode->blocks = in fat32_read_superblock()
[all …]
/DragonOS-0.1.2/tools/
Dbuild_in_docker.sh4 …S_ADMIN --cap-add MKNOD -v $p:/data -v /dev:/dev -v dragonos-build-cargo:/root/.cargo/registry --n…
/DragonOS-0.1.2/docs/
Dindex.rst4 contain the root `toctree` directive.
/DragonOS-0.1.2/docs/kernel/filesystem/vfs/
Doverview.md92 struct vfs_dir_entry_t *root;
98 **root**
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.h61 struct vfs_dir_entry_t *root; member
DVFS.c54 struct vfs_dir_entry_t *new_dentry = sb->root; in vfs_mount_fs()
141 struct vfs_dir_entry_t *parent = vfs_root_sb->root; in vfs_path_walk()
436 parent_dentry = vfs_root_sb->root; in do_open()
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Ddevfs.c37 devfs_sb.root = devfs_root_dentry; in devfs_read_superblock()
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c44 procfs_sb.root = procfs_root_dentry; in procfs_read_superblock()