Searched refs:h_nbuckets (Results 1 – 2 of 2) sorted by relevance
48 hp->h_nbuckets = 1; in ctf_hash_create()52 hp->h_nbuckets = 211; /* use a prime number of hash buckets */ in ctf_hash_create()56 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()64 bzero(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()120 h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets; in ctf_hash_insert()153 ulong_t h = ctf_hash_compute(key, len) % hp->h_nbuckets; in ctf_hash_lookup()170 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) { in ctf_hash_destroy()171 ctf_free(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_destroy()186 for (ushort_t h = 0; h < hp->h_nbuckets; h++) { in ctf_hash_dump()
79 ushort_t h_nbuckets; /* number of elements in bucket array */ member