Lines Matching defs:cache

452  * The usage cache is updated by the stat_thread, and copied to clients by
1678 processorid_t *cache;
1702 if ((cache = (processorid_t *)realloc(
1706 ctl->zsctl_cpu_cache = cache;
1819 if ((cache = (processorid_t *)realloc(
1823 ctl->zsctl_cpu_cache = cache;
1884 psetid_t *cache;
1942 if ((cache = (psetid_t *)realloc(ctl->zsctl_pset_cache,
1947 ctl->zsctl_pset_cache = cache;
1973 if ((cache = (psetid_t *)realloc(ctl->zsctl_pset_cache,
1976 ctl->zsctl_pset_cache = cache;
2382 zoneid_t *cache;
2416 if ((cache = (zoneid_t *)realloc(ctl->zsctl_zone_cache,
2419 ctl->zsctl_zone_cache = cache;
3403 /* vmusage results cache too small */
3687 * Saves current usage data to a cache that is read by libzonestat when
3697 zs_usage_cache_t *cache;
3721 cache = (zs_usage_cache_t *)malloc(size);
3722 if (cache == NULL) {
3723 zsd_warn(gettext("Unable to allocate usage cache\n"));
3727 next = (char *)cache;
3728 cache->zsuc_size = size - sizeof (zs_usage_cache_t);
3732 usage = cache->zsuc_usage = (zs_usage_t *)next;
3876 /* Update the current cache pointer */
3879 cache->zsuc_ref = 1;
3880 cache->zsuc_gen = g_gen_next;
3883 g_usage_cache = cache;
3908 zsd_usage_cache_rele(zs_usage_cache_t *cache)
3911 cache->zsuc_ref--;
3912 if (cache->zsuc_ref == 0)
3913 free(cache);
4226 zsd_usage_filter(zoneid_t zid, zs_usage_cache_t *cache, zs_usage_t *usage,
4241 cusage = cache->zsuc_usage;
4247 cusage = cache->zsuc_usage;
4429 zs_usage_cache_t *cache;
4497 cache = zsd_usage_cache_hold_locked();
4498 if (cache == NULL) {
4499 zsd_warn(gettext("Usage cache empty.\n"));
4506 usage = (zs_usage_t *)alloca(cache->zsuc_size);
4509 zsd_usage_filter(zoneid, cache, usage, is_gz);
4513 zsd_usage_cache_rele(cache);