Lines Matching refs:ht_buckets
217 static struct ht_elem **ht_buckets = NULL; variable
228 for (elem = ht_buckets[i]; elem != NULL; elem = next) { in ht_free()
235 free(ht_buckets); in ht_free()
237 ht_buckets = NULL; in ht_free()
243 assert(ht_buckets == NULL); in ht_init()
246 ht_buckets = safe_malloc(sizeof (*ht_buckets) * ht_buckets_num); in ht_init()
247 bzero(ht_buckets, sizeof (*ht_buckets) * ht_buckets_num); in ht_init()
291 for (elem = ht_buckets[i]; elem != NULL; elem = next) { in ht_grow()
304 free(ht_buckets); in ht_grow()
306 ht_buckets = new_ht_buckets; in ht_grow()
322 elem = ht_buckets[h & (ht_buckets_num - 1)]; in ht_add()
337 elem->next = ht_buckets[h & (ht_buckets_num - 1)]; in ht_add()
338 ht_buckets[h & (ht_buckets_num - 1)] = elem; in ht_add()
3017 if (wip->pg == NULL && ht_buckets != NULL && ht_add(wip->fmri)) { in list_instance()
3849 if (ht_buckets != NULL) in main()