Lines Matching refs:new
1397 * Get ready for a new set of policy zones for a view.
1401 dns_rpz_zones_t *new;
1408 new = isc_mem_get(mctx, sizeof(*new));
1409 if (new == NULL)
1411 memset(new, 0, sizeof(*new));
1413 result = isc_rwlock_init(&new->search_lock, 0, 0);
1415 isc_mem_put(mctx, new, sizeof(*new));
1419 result = isc_mutex_init(&new->maint_lock);
1421 isc_rwlock_destroy(&new->search_lock);
1422 isc_mem_put(mctx, new, sizeof(*new));
1426 result = isc_refcount_init(&new->refs, 1);
1428 DESTROYLOCK(&new->maint_lock);
1429 isc_rwlock_destroy(&new->search_lock);
1430 isc_mem_put(mctx, new, sizeof(*new));
1434 result = dns_rbt_create(mctx, rpz_node_deleter, mctx, &new->rbt);
1436 isc_refcount_decrement(&new->refs, NULL);
1437 isc_refcount_destroy(&new->refs);
1438 DESTROYLOCK(&new->maint_lock);
1439 isc_rwlock_destroy(&new->search_lock);
1440 isc_mem_put(mctx, new, sizeof(*new));
1444 isc_mem_attach(mctx, &new->mctx);
1446 *rpzsp = new;
1586 * reload the new zone data into a new blank summary database
1587 * if the reload fails, discard the new summary database
1588 * if the new zone data is acceptable, copy the records for the
1589 * other zones into the new summary CIDR and RBT databases
1590 * and replace the old summary databases with the new, and
1613 * Setup the new RPZ struct with empty summary trees.
1729 * data for the new zone that was just loaded, as well as all other
1738 * The trigger counts for the new zone are also copied into the view's
1767 * for a new instance of a view.
1782 * from the old policy structure to the new summary databases.