Home
last modified time | relevance | path

Searched refs:g_host_stats_cache (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.1.9/osfmk/kern/
H A Dhost.c620 static struct host_stats_cache g_host_stats_cache[NUM_HOST_INFO_DATA_TYPES] = { variable
653 …memcpy((void *)g_host_stats_cache[index].data, info, g_host_stats_cache[index].count * sizeof(inte… in cache_host_statistics()
665 *count = g_host_stats_cache[index].count; in get_cached_info()
666 …memcpy(info, (void *)g_host_stats_cache[index].data, g_host_stats_cache[index].count * sizeof(inte… in get_cached_info()
778 if (g_host_stats_cache[index].last_access > mach_continuous_time() - host_statistics_time_window) { in rate_limit_host_statistics()
780 if (g_host_stats_cache[index].current_requests++ >= g_host_stats_cache[index].max_requests) { in rate_limit_host_statistics()
786 g_host_stats_cache[index].current_requests = 1; in rate_limit_host_statistics()
793g_host_stats_cache[index].max_requests = (mach_absolute_time() % (HOST_STATISTICS_MAX_REQUESTS - H… in rate_limit_host_statistics()
794 g_host_stats_cache[index].last_access = mach_continuous_time(); in rate_limit_host_statistics()