Searched refs:h_buckets (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/common/ctf/
H A Dctf_hash.c46 hp->h_buckets = (ushort_t *)_CTF_EMPTY;
55 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets);
58 if (hp->h_buckets == NULL || hp->h_chains == NULL) {
63 bzero(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets);
120 hep->h_next = hp->h_buckets[h];
121 hp->h_buckets[h] = hp->h_free++;
154 for (i = hp->h_buckets[h]; i != 0; i = hep->h_next) {
169 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) {
170 ctf_free(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets);
171 hp->h_buckets
[all...]
H A Dctf_impl.h73 ushort_t *h_buckets; /* hash bucket array (chain indices) */ member in struct:ctf_hash
/illumos-gate/usr/src/tools/ctf/cvt/
H A Dhash.c45 list_t **h_buckets; member in struct:hash
97 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets);
110 list_add(&hash->h_buckets[bucket], key);
137 (void) list_remove(&hash->h_buckets[bucket], key,
147 return (list_iter(hash->h_buckets[bucket], fun, private) < 0);
177 return (list_iter(hash->h_buckets[bucket], (int (*)())hash_find_list_cb,
218 if (hash->h_buckets[i] != NULL) {
219 if ((cbrc = list_iter(hash->h_buckets[i], fun,
235 num += list_count(hash->h_buckets[i]);
249 list_free(hash->h_buckets[
[all...]

Completed in 60 milliseconds