Searched refs:root_idx (Results 1 – 2 of 2) sorted by relevance
91 uint32_t root_idx; /* index for root node */ member264 #define DB_EMPTY(h) (DB_HDR(h)->root_idx == DB_NIL && \
190 (void) read_nodes(hdp, NULL, DB_HDR(hdp)->root_idx); in di_devlink_open()521 if (!VALID_INDEX(hdp, DB_NODE, DB_HDR(hdp)->root_idx)) { in invalid_db()557 if ((pcnp == NULL) ^ (nidx == DB_HDR(hdp)->root_idx)) { in read_nodes()577 assert(strcmp(path, "/") ^ (nidx == DB_HDR(hdp)->root_idx)); in read_nodes()798 DB_HDR(hdp)->root_idx = DB_NIL; in init_hdr()853 assert(DB_HDR(hdp)->root_idx == DB_NIL); in write_nodes()854 DB_HDR(hdp)->root_idx = idx; in write_nodes()1646 : get_node(tnp->handle, DB_HDR(tnp->handle)->root_idx); in visit_node()