lib/dns/rbtdb.c
/*
 * Caller must be holding the node lock if its reference must be protected
 * by the lock.
 */
Caller must be holding the node lock if its reference must be protected
by the lock.
Caller must be holding the node lock if its reference must be protected by the lock .
static inline void
new_reference(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node) {
	unsigned int lockrefs, noderefs;
	isc_refcount_t *lockref;
	dns_rbtnode_refincrement0(node, &noderefs);
	if (noderefs == 1) {    
		lockref = &rbtdb->node_locks[node->locknum].references;
		isc_refcount_increment0(lockref, &lockrefs);
		INSIST(lockrefs != 0);
	}
	INSIST(noderefs != 0);
}
static inline void new_reference ( dns_rbtdb_t * rbtdb , dns_rbtnode_t * node ) { unsigned int lockrefs , noderefs ; isc_refcount_t * lockref ; dns_rbtnode_refincrement0 ( node , & noderefs ) ; if ( noderefs == 1 ) { lockref = & rbtdb -> node_locks [ node -> locknum ] . references ; isc_refcount_increment0 ( lockref , & lockrefs ) ; INSIST ( lockrefs != 0 ) ; } INSIST ( noderefs != 0 ) ; }
Caller must be holding the node lock if its reference must be protected
 by the lock.
Caller must be holding the node lock if its reference must be protected by the lock .
/* this is the first reference to the node */