27 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FD 46 node->ftn_child_nr = child_nr;
70 M0_PRE(depth <= tree->ft_depth);
93 *cursor = coarse_cursor;
120 node->ftn_children[child_idx]->ftn_abs_idx;
125 while (parent !=
NULL) {
130 *cursor = fine_cursor;
131 memcpy(cursor, &fine_cursor,
sizeof fine_cursor);
157 while (parent !=
NULL &&
167 while (depth < cursor->ftc_depth) {
182 uint64_t root_children)
212 node->ftn_child_nr > 0 &&
216 #undef M0_TRACE_SUBSYSTEM M0_INTERNAL struct m0_fd_tree_node ** m0_fd__tree_cursor_get(struct m0_fd__tree_cursor *cursor)
M0_INTERNAL int m0_fd__tree_cursor_init(struct m0_fd__tree_cursor *cursor, const struct m0_fd_tree *tree, uint16_t depth)
M0_INTERNAL void m0_fd__tree_node_fini(struct m0_fd_tree *tree, struct m0_fd_tree_node *node)
static struct net_test_cmd_node * node
int32_t ftc_child_abs_idx
M0_INTERNAL int m0_fd__tree_cursor_next(struct m0_fd__tree_cursor *cursor)
struct m0_fd_tree_node * ftn_parent
return M0_ERR(-EOPNOTSUPP)
struct m0_fd_tree_node * ftc_node
M0_INTERNAL bool m0_fd__tree_invariant(const struct m0_fd_tree *tree)
void * m0_alloc(size_t size)
struct m0_fd_tree * ftc_tree
struct m0_fd_tree_node * ft_root
struct m0_fd_tree_node ** ftn_children
uint64_t ftc_path[M0_CONF_PVER_HEIGHT+1]
M0_INTERNAL int m0_fd__tree_node_init(struct m0_fd_tree *tree, struct m0_fd_tree_node *node, uint16_t child_nr, const struct m0_fd__tree_cursor *cursor)
M0_INTERNAL bool m0_fd__tree_node_invariant(const struct m0_fd_tree *tree, const struct m0_fd_tree_node *node)
M0_INTERNAL int m0_fd__tree_root_create(struct m0_fd_tree *tree, uint64_t root_children)
M0_INTERNAL int m0_fd__tree_cursor_init_at(struct m0_fd__tree_cursor *cursor, const struct m0_fd_tree *tree, const struct m0_fd_tree_node *node, uint32_t child_idx)