Searched refs:g_host_stats_cache (Results 1 – 1 of 1) sorted by relevance
604 static struct host_stats_cache g_host_stats_cache[NUM_HOST_INFO_DATA_TYPES] = { variable635 …memcpy((void *)g_host_stats_cache[index].data, info, g_host_stats_cache[index].count * sizeof(inte… in cache_host_statistics()647 *count = g_host_stats_cache[index].count; in get_cached_info()648 …memcpy(info, (void *)g_host_stats_cache[index].data, g_host_stats_cache[index].count * sizeof(inte… in get_cached_info()750 if (g_host_stats_cache[index].last_access > mach_continuous_time() - host_statistics_time_window) { in rate_limit_host_statistics()752 if (g_host_stats_cache[index].current_requests++ >= g_host_stats_cache[index].max_requests) { in rate_limit_host_statistics()758 g_host_stats_cache[index].current_requests = 1; in rate_limit_host_statistics()765 …g_host_stats_cache[index].max_requests = (mach_absolute_time() % (HOST_STATISTICS_MAX_REQUESTS - H… in rate_limit_host_statistics()766 g_host_stats_cache[index].last_access = mach_continuous_time(); in rate_limit_host_statistics()