Searched refs:sh_nbuckets (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libshadowfs/common/
H A Dshadow_hash.c95 shp->sh_nbuckets = SHADOW_HASHMINSIZE;
102 shp->sh_nbuckets * sizeof (void *))) == NULL) {
147 return (shp->sh_compute(shp->sh_convert(elem)) % shp->sh_nbuckets);
153 size_t osize = shp->sh_nbuckets;
172 shp->sh_nbuckets = nsize;
199 ulong_t idx = shp->sh_compute(search) % shp->sh_nbuckets;
247 if (++shp->sh_nelements > shp->sh_nbuckets / 2)
248 shadow_hash_resize(shp, shadow_hash_double(shp->sh_nbuckets));
270 if (--shp->sh_nelements < shp->sh_nbuckets / 4)
271 shadow_hash_resize(shp, shadow_hash_half(shp->sh_nbuckets));
[all...]
H A Dshadow_impl.h73 size_t sh_nbuckets; /* number of buckets */ member in struct:shadow_hash

Completed in 21 milliseconds