Lines Matching defs:rbtnode
2684 dns_rbtnode_t *rbtnode;
2914 rbtnode = changed->node;
2915 lock = &rbtdb->node_locks[rbtnode->locknum].lock;
2923 cleanup_dead_nodes(rbtdb, rbtnode->locknum);
2926 rollback_node(rbtnode, serial);
2927 decrement_reference(rbtdb, rbtnode, least_serial,
5573 dns_rbtnode_t *rbtnode = node;
5601 force_expire = ISC_TF(rbtnode->down == NULL && val % 4 == 0);
5613 dns_rbt_formatnodename(rbtnode,
5622 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5625 for (header = rbtnode->data; header != NULL; header = header->next)
5628 * We don't check if refcurrent(rbtnode) == 0 and try
5630 * refcurrent(rbtnode) must be non-zero. This is so
5652 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5671 dns_rbtnode_t *rbtnode = node;
5676 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5680 rbtnode, dns_rbtnode_refcurrent(rbtnode),
5681 rbtnode->locknum);
5682 if (rbtnode->data != NULL) {
5685 for (current = rbtnode->data; current != NULL;
5710 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5762 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
5780 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5791 for (header = rbtnode->data; header != NULL; header = header_next) {
5823 bind_rdataset(rbtdb, rbtnode, found, now, rdataset);
5825 bind_rdataset(rbtdb, rbtnode, foundsig, now,
5829 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5849 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
5866 lock = &rbtdb->node_locks[rbtnode->locknum].lock;
5879 for (header = rbtnode->data; header != NULL; header = header_next) {
5892 * We don't check if refcurrent(rbtnode) == 0
5894 * because refcurrent(rbtnode) must be
5911 bind_rdataset(rbtdb, rbtnode, found, now, rdataset);
5913 bind_rdataset(rbtdb, rbtnode, foundsig, now,
5942 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
5978 NODE_STRONGLOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
5980 dns_rbtnode_refincrement(rbtnode, &refs);
5985 NODE_STRONGUNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
6115 add32(dns_rbtdb_t *rbtdb, dns_rbtnode_t *rbtnode, rbtdb_version_t *rbtversion,
6156 changed = add_changed(rbtdb, rbtversion, rbtnode);
6185 for (topheader = rbtnode->data;
6198 for (topheader = rbtnode->data;
6213 for (topheader = rbtnode->data;
6238 bind_rdataset(rbtdb, rbtnode,
6256 for (topheader = rbtnode->data;
6293 bind_rdataset(rbtdb, rbtnode, header, now,
6392 bind_rdataset(rbtdb, rbtnode, header, now,
6438 bind_rdataset(rbtdb, rbtnode, header, now,
6487 rbtnode->data = newheader;
6529 rbtnode->data = newheader;
6533 rbtnode->dirty = 1;
6606 rbtnode->data = newheader;
6610 rbtnode->dirty = 1;
6617 newheader->next = rbtnode->data;
6619 rbtnode->data = newheader;
6633 cname_and_other_data(rbtnode, rbtversion->serial))
6637 bind_rdataset(rbtdb, rbtnode, newheader, now, addedrdataset);
6768 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
6785 REQUIRE(((rbtnode->nsec == DNS_RBT_NSEC_NSEC3 &&
6788 (rbtnode->nsec != DNS_RBT_NSEC_NSEC3 &&
6826 newheader->node = rbtnode;
6875 if (delegating_type(rbtdb, rbtnode, rdataset->type))
6883 if (rbtnode->nsec != DNS_RBT_NSEC_HAS_NSEC &&
6903 overmem_purge(rbtdb, rbtnode->locknum, now, tree_locked);
6905 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6915 cleanup_dead_nodes(rbtdb, rbtnode->locknum);
6917 header = isc_heap_element(rbtdb->heaps[rbtnode->locknum], 1);
6937 dns_rbt_fullnamefromnode(rbtnode, name);
6942 rbtnode->nsec = DNS_RBT_NSEC_HAS_NSEC;
6944 rbtnode->nsec = DNS_RBT_NSEC_HAS_NSEC;
6950 result = add32(rbtdb, rbtnode, rbtversion, newheader, options,
6953 rbtnode->find_callback = 1;
6955 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6977 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
6989 REQUIRE(((rbtnode->nsec == DNS_RBT_NSEC_NSEC3 &&
6992 (rbtnode->nsec != DNS_RBT_NSEC_NSEC3 &&
7014 newheader->node = rbtnode;
7025 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7028 changed = add_changed(rbtdb, rbtversion, rbtnode);
7031 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7037 for (topheader = rbtnode->data;
7079 result = resign_insert(rbtdb, rbtnode->locknum,
7124 newheader->node = rbtnode;
7142 rbtnode->data = newheader;
7146 rbtnode->dirty = 1;
7162 bind_rdataset(rbtdb, rbtnode, newheader, 0, newrdataset);
7166 bind_rdataset(rbtdb, rbtnode, header, 0, newrdataset);
7169 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7187 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
7218 newheader->node = rbtnode;
7220 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7223 result = add32(rbtdb, rbtnode, rbtversion, newheader, DNS_DBADD_FORCE,
7226 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7472 rbt_datafixer(dns_rbtnode_t *rbtnode, void *base, size_t filesize,
7483 REQUIRE(rbtnode != NULL);
7485 for (header = rbtnode->data; header != NULL; header = header->next) {
7500 header->node = rbtnode;
8321 dns_rbtnode_t *rbtnode = (dns_rbtnode_t *)node;
8329 result = dns_rbt_fullnamefromnode(rbtnode, name);
9031 dns_rbtnode_t *rbtnode = rdataset->private2;
9035 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9038 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9045 dns_rbtnode_t *rbtnode = rdataset->private2;
9049 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9052 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9059 dns_rbtnode_t *rbtnode = rdataset->private2;
9063 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9066 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9094 dns_rbtnode_t *rbtnode = rbtiterator->common.node;
9108 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9111 for (header = rbtnode->data; header != NULL; header = top_next) {
9136 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9151 dns_rbtnode_t *rbtnode = rbtiterator->common.node;
9171 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9212 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9227 dns_rbtnode_t *rbtnode = rbtiterator->common.node;
9233 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9236 bind_rdataset(rbtdb, rbtnode, header, rbtiterator->common.now,
9239 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
9758 dns_rbtnode_t *rbtnode = rdataset->private2;
9780 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
9826 dns_rbtnode_t *rbtnode;
9840 rbtnode = (dns_rbtnode_t *)cbarg->node;
9842 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
9867 dns_db_detachnode((dns_db_t *)rbtdb, (dns_dbnode_t **)(void*)&rbtnode);
9903 dns_rbtnode_t *rbtnode = rdataset->private2;
9934 dns_db_attachnode((dns_db_t *)rbtdb, (dns_dbnode_t *)rbtnode,
9948 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
10033 dns_rbtnode_t *rbtnode = rdataset->private2;
10058 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;