Home
last modified time | relevance | path

Searched refs:root_idx (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.h91 uint32_t root_idx; /* index for root node */ member
264 #define DB_EMPTY(h) (DB_HDR(h)->root_idx == DB_NIL && \
H A Ddevinfo_devlink.c189 (void) read_nodes(hdp, NULL, DB_HDR(hdp)->root_idx); in di_devlink_open()
516 if (!VALID_INDEX(hdp, DB_NODE, DB_HDR(hdp)->root_idx)) { in invalid_db()
552 if ((pcnp == NULL) ^ (nidx == DB_HDR(hdp)->root_idx)) { in read_nodes()
572 assert(strcmp(path, "/") ^ (nidx == DB_HDR(hdp)->root_idx)); in read_nodes()
783 DB_HDR(hdp)->root_idx = DB_NIL; in init_hdr()
838 assert(DB_HDR(hdp)->root_idx == DB_NIL); in write_nodes()
839 DB_HDR(hdp)->root_idx = idx; in write_nodes()
1625 : get_node(tnp->handle, DB_HDR(tnp->handle)->root_idx); in visit_node()