Searched defs:hash_sz (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.h126 uint_t hash_sz; /* number of hash chains */ member in struct:cache
H A Ddevinfo_devlink.c470 size_t hash_sz = 0; local
475 hash_sz = DB_NUM(hdp, DB_LINK) / AVG_CHAIN_SIZE;
477 hash_sz = (hash_sz >= MIN_HASH_SIZE) ? hash_sz : MIN_HASH_SIZE;
479 CACHE(hdp)->hash = calloc(hash_sz, sizeof (cache_link_t *));
483 CACHE(hdp)->hash_sz = hash_sz;
1074 assert((CACHE(hdp)->hash == NULL) ^ (CACHE(hdp)->hash_sz != 0));
1078 CACHE(hdp)->hash_sz
[all...]

Completed in 27 milliseconds