Lines Matching refs:locknum
743 idx = header->node->locknum;
1278 idx = rdataset->node->locknum;
1556 lockref = &rbtdb->node_locks[node->locknum].references;
1578 nodelock_t *nodelock = &rbtdb->node_locks[node->locknum].lock;
1590 if (!ISC_LIST_EMPTY(rbtdb->deadnodes[node->locknum]) &&
1604 ISC_LIST_UNLINK(rbtdb->deadnodes[node->locknum],
1607 cleanup_dead_nodes(rbtdb, node->locknum);
1636 int bucket = node->locknum;
1848 unsigned int locknum;
1855 locknum = node->locknum;
1856 NODE_LOCK(&rbtdb->node_locks[locknum].lock, isc_rwlocktype_write);
1869 if (parent->locknum != locknum) {
1870 NODE_UNLOCK(&rbtdb->node_locks[locknum].lock,
1872 locknum = parent->locknum;
1873 NODE_LOCK(&rbtdb->node_locks[locknum].lock,
1885 ISC_LIST_UNLINK(rbtdb->deadnodes[locknum],
1893 NODE_UNLOCK(&rbtdb->node_locks[locknum].lock, isc_rwlocktype_write);
2031 NODE_LOCK(&(rbtdb->node_locks[node->locknum].lock),
2112 NODE_UNLOCK(&(rbtdb->node_locks[node->locknum].lock),
2121 unsigned int locknum;
2125 for (locknum = 0; locknum < rbtdb->node_lock_count; locknum++) {
2126 NODE_LOCK(&rbtdb->node_locks[locknum].lock,
2128 cleanup_dead_nodes(rbtdb, locknum);
2129 if (ISC_LIST_HEAD(rbtdb->deadnodes[locknum]) != NULL)
2131 NODE_UNLOCK(&rbtdb->node_locks[locknum].lock,
2335 lock = &rbtdb->node_locks[header->node->locknum].lock;
2338 resign_insert(rbtdb, header->node->locknum, header);
2375 lock = &rbtdb->node_locks[rbtnode->locknum].lock;
2383 cleanup_dead_nodes(rbtdb, rbtnode->locknum);
2504 node->locknum = node->hashval % rbtdb->node_lock_count;
2506 node->locknum = dns_name_hash(&nodename, ISC_TRUE) %
2585 NODE_LOCK(&(search->rbtdb->node_locks[node->locknum].lock),
2702 NODE_UNLOCK(&(search->rbtdb->node_locks[node->locknum].lock),
2816 NODE_LOCK(&(search->rbtdb->node_locks[node->locknum].lock),
2824 NODE_UNLOCK(&(search->rbtdb->node_locks[node->locknum].lock),
2928 NODE_LOCK(&(rbtdb->node_locks[node->locknum].lock),
2937 NODE_UNLOCK(&(rbtdb->node_locks[node->locknum].lock),
2995 NODE_LOCK(&(rbtdb->node_locks[node->locknum].lock),
3004 NODE_UNLOCK(&(rbtdb->node_locks[node->locknum].lock),
3022 NODE_LOCK(&(rbtdb->node_locks[node->locknum].lock),
3031 NODE_UNLOCK(&(rbtdb->node_locks[node->locknum].lock),
3100 NODE_LOCK(&(rbtdb->node_locks[node->locknum].lock),
3126 NODE_UNLOCK(&(rbtdb->node_locks[node->locknum].lock),
3167 lock = &rbtdb->node_locks[wnode->locknum].lock;
3306 NODE_LOCK(&(search->rbtdb->node_locks[node->locknum].lock),
3414 NODE_UNLOCK(&(search->rbtdb->node_locks[node->locknum].lock),
3605 lock = &search.rbtdb->node_locks[node->locknum].lock;
3930 lock = &(search.rbtdb->node_locks[node->locknum].lock);
3985 lock = &(search->rbtdb->node_locks[node->locknum].lock);
4108 lock = &rbtdb->node_locks[node->locknum].lock;
4288 lock = &(search->rbtdb->node_locks[node->locknum].lock);
4465 lock = &(search.rbtdb->node_locks[node->locknum].lock);
4708 lock = &(search.rbtdb->node_locks[node->locknum].lock);
4778 lock = &(search.rbtdb->node_locks[node->locknum].lock);
4907 NODE_STRONGLOCK(&rbtdb->node_locks[node->locknum].lock);
4910 NODE_STRONGUNLOCK(&rbtdb->node_locks[node->locknum].lock);
4927 nodelock = &rbtdb->node_locks[node->locknum];
5016 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5048 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5072 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5075 fprintf(out, "node %p, %u references, locknum = %u\n",
5077 rbtnode->locknum);
5105 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5175 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5224 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
5261 lock = &rbtdb->node_locks[rbtnode->locknum].lock;
5374 NODE_STRONGLOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
5381 NODE_STRONGUNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
5827 idx = newheader->node->locknum;
5887 idx = newheader->node->locknum;
6142 overmem_purge(rbtdb, rbtnode->locknum, now, tree_locked);
6144 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6154 cleanup_dead_nodes(rbtdb, rbtnode->locknum);
6156 header = isc_heap_element(rbtdb->heaps[rbtnode->locknum], 1);
6176 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6243 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6249 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6364 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6414 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6420 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
6494 node->locknum = node->hashval % rbtdb->node_lock_count;
6496 node->locknum = dns_name_hash(&foundname, ISC_TRUE) %
6624 unsigned int locknum;
6627 locknum = current->node->locknum;
6628 NODE_LOCK(&rbtdb->node_locks[locknum].lock, isc_rwlocktype_write);
6634 NODE_UNLOCK(&rbtdb->node_locks[locknum].lock, isc_rwlocktype_write);
6719 NODE_STRONGLOCK(&rbtdb->node_locks[onode->locknum].lock);
6721 NODE_STRONGUNLOCK(&rbtdb->node_locks[onode->locknum].lock);
6786 NODE_LOCK(&rbtdb->node_locks[header->node->locknum].lock,
6794 isc_heap_delete(rbtdb->heaps[header->node->locknum],
6798 isc_heap_increased(rbtdb->heaps[header->node->locknum],
6801 isc_heap_decreased(rbtdb->heaps[header->node->locknum],
6805 result = resign_insert(rbtdb, header->node->locknum, header);
6807 NODE_UNLOCK(&rbtdb->node_locks[header->node->locknum].lock,
6820 unsigned int locknum;
6837 locknum = header->node->locknum;
6838 NODE_UNLOCK(&rbtdb->node_locks[locknum].lock,
6854 NODE_UNLOCK(&rbtdb->node_locks[header->node->locknum].lock,
6888 NODE_LOCK(&rbtdb->node_locks[node->locknum].lock,
6895 isc_heap_delete(rbtdb->heaps[node->locknum], header->heap_index);
6899 NODE_UNLOCK(&rbtdb->node_locks[node->locknum].lock,
7197 * We need to give the origin node the right locknum.
7202 rbtdb->origin_node->locknum =
7206 rbtdb->origin_node->locknum =
7225 * We need to give the nsec3 origin node the right locknum.
7230 nsec3node->locknum = nsec3node->hashval %
7233 nsec3node->locknum = dns_name_hash(&name, ISC_TRUE) %
7569 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7572 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7583 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7586 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7628 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7656 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7691 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7733 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7754 NODE_LOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7760 NODE_UNLOCK(&rbtdb->node_locks[rbtnode->locknum].lock,
7790 lock = &rbtdb->node_locks[node->locknum].lock;
7829 lock = &rbtdb->node_locks[node->locknum].lock;
8202 NODE_STRONGLOCK(&rbtdb->node_locks[node->locknum].lock);
8204 NODE_STRONGUNLOCK(&rbtdb->node_locks[node->locknum].lock);
8228 NODE_STRONGLOCK(&rbtdb->node_locks[node->locknum].lock);
8231 NODE_STRONGUNLOCK(&rbtdb->node_locks[node->locknum].lock);
8308 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
8370 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
8476 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
8586 nodelock = &rbtdb->node_locks[rbtnode->locknum].lock;
8690 ISC_LIST_UNLINK(rbtdb->rdatasets[header->node->locknum], header, link);
8692 ISC_LIST_PREPEND(rbtdb->rdatasets[header->node->locknum], header, link);
8710 unsigned int locknum;
8713 for (locknum = (locknum_start + 1) % rbtdb->node_lock_count;
8714 locknum != locknum_start && purgecount > 0;
8715 locknum = (locknum + 1) % rbtdb->node_lock_count) {
8716 NODE_LOCK(&rbtdb->node_locks[locknum].lock,
8719 header = isc_heap_element(rbtdb->heaps[locknum], 1);
8725 for (header = ISC_LIST_TAIL(rbtdb->rdatasets[locknum]);
8736 ISC_LIST_UNLINK(rbtdb->rdatasets[locknum], header,
8742 NODE_UNLOCK(&rbtdb->node_locks[locknum].lock,