Lines Matching refs:h_buckets
45 list_t **h_buckets; member
97 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets); in hash_new()
110 list_add(&hash->h_buckets[bucket], key); in hash_add()
137 (void) list_remove(&hash->h_buckets[bucket], key, in hash_remove()
147 return (list_iter(hash->h_buckets[bucket], fun, private) < 0); in hash_match()
177 return (list_iter(hash->h_buckets[bucket], (int (*)())hash_find_list_cb, in hash_find_iter()
218 if (hash->h_buckets[i] != NULL) { in hash_iter()
219 if ((cbrc = list_iter(hash->h_buckets[i], fun, in hash_iter()
235 num += list_count(hash->h_buckets[i]); in hash_count()
249 list_free(hash->h_buckets[i], datafree, private); in hash_free()
250 free(hash->h_buckets); in hash_free()
257 int min = list_count(hash->h_buckets[0]); in hash_stats()
268 count = list_count(hash->h_buckets[i]); in hash_stats()