Lines Matching defs:mibcache

66 static nvlist_t	**mibcache = NULL;
86 * entries in the mibcache toward expiration. The code originally used
101 * The mibcache code originally cached values for 300 seconds after fetching
119 * mibcache entry even though it hasn't expired.
245 if ((nvl = mibcache[i]) != NULL)
250 if (mibcache) {
251 free(mibcache);
252 mibcache = NULL;
618 if (mibcache[row] == NULL) {
628 if (nvlist_lookup_int32_array(mibcache[row], prefix,
646 if (nvlist_lookup_int32(mibcache[row], prefix, valp) != 0) {
672 if (mibcache[row] == NULL) {
682 if (nvlist_lookup_string_array(mibcache[row], prefix,
700 if (nvlist_lookup_string(mibcache[row], prefix, valp) != 0) {
721 if (mibcache[row] == NULL) {
739 if (nvlist_lookup_byte_array(mibcache[row], prefix, valp, nelem) != 0) {
969 * reply-PDU out of the information. Populate the mibcache
1172 if (mibcache) {
1173 (void) memcpy((void *) p, (void *) mibcache,
1175 free((void *) mibcache);
1178 mibcache = p;
1240 if (mibcache[row] == NULL)
1241 ret = nvlist_alloc(&mibcache[row], NV_UNIQUE_NAME, 0);
1251 * by the prefix (mibcache is really an array of nvlist_t
1263 (void) nvlist_add_int32_array(mibcache[row],
1266 (void) nvlist_add_int32(mibcache[row],
1273 (void) nvlist_add_string_array(mibcache[row],
1276 (void) nvlist_add_string(mibcache[row],
1285 (void) nvlist_add_byte_array(mibcache[row],
1454 * data in the mibcache to expire.
1464 * the mibcache entry will be updated, but since we're trying to update
1465 * the mibcache entry before it expires anyway, the earlier timestamp
1524 * Return the number of seconds remaining before the mibcache entry associated