Lines Matching refs:DB_HDR

188 	CACHE(hdp)->update_count = DB_HDR(hdp)->update_count;  in di_devlink_open()
189 (void) read_nodes(hdp, NULL, DB_HDR(hdp)->root_idx); in di_devlink_open()
190 (void) read_links(hdp, NULL, DB_HDR(hdp)->dngl_idx); in di_devlink_open()
493 if (DB_HDR(hdp)->magic != DB_MAGIC || DB_HDR(hdp)->vers != DB_VERSION) { in invalid_db()
497 if (DB_HDR(hdp)->page_sz == 0 || DB_HDR(hdp)->page_sz != page_sz) { in invalid_db()
516 if (!VALID_INDEX(hdp, DB_NODE, DB_HDR(hdp)->root_idx)) { in invalid_db()
520 if (!VALID_INDEX(hdp, DB_LINK, DB_HDR(hdp)->dngl_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()
639 ((pcmp == NULL) ^ (nidx == DB_HDR(hdp)->dngl_idx))) { in read_links()
753 DB_HDR(hdp)->update_count = CACHE(hdp)->update_count; in di_devlink_close()
781 DB_HDR(hdp)->magic = DB_MAGIC; in init_hdr()
782 DB_HDR(hdp)->vers = DB_VERSION; in init_hdr()
783 DB_HDR(hdp)->root_idx = DB_NIL; in init_hdr()
784 DB_HDR(hdp)->dngl_idx = DB_NIL; in init_hdr()
785 DB_HDR(hdp)->page_sz = (uint32_t)page_sz; 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()
966 dlp->sib = DB_HDR(hdp)->dngl_idx; in write_links()
967 DB_HDR(hdp)->dngl_idx = idx; in write_links()
1040 rv += msync((caddr_t)DB_HDR(hdp), HDR_LEN, MS_SYNC); in close_db()
1041 (void) munmap((caddr_t)DB_HDR(hdp), HDR_LEN); in close_db()
1625 : get_node(tnp->handle, DB_HDR(tnp->handle)->root_idx); in visit_node()
2284 nidx = dmp ? dmp->link : DB_HDR(hdp)->dngl_idx; in walk_matching_links()
2933 assert(DB_HDR(hdp)->page_sz); in seg_size()
2942 sz = (sz / DB_HDR(hdp)->page_sz) + 1; in seg_size()
2944 sz *= DB_HDR(hdp)->page_sz; in seg_size()