Home
last modified time | relevance | path

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

/xnu-11215.1.10/osfmk/kern/
H A Dhost.c606 static struct host_stats_cache g_host_stats_cache[NUM_HOST_INFO_DATA_TYPES] = { variable
638 …memcpy((void *)g_host_stats_cache[index].data, info, g_host_stats_cache[index].count * sizeof(inte… in cache_host_statistics()
650 *count = g_host_stats_cache[index].count; in get_cached_info()
651 …memcpy(info, (void *)g_host_stats_cache[index].data, g_host_stats_cache[index].count * sizeof(inte… in get_cached_info()
760 if (g_host_stats_cache[index].last_access > mach_continuous_time() - host_statistics_time_window) { in rate_limit_host_statistics()
762 if (g_host_stats_cache[index].current_requests++ >= g_host_stats_cache[index].max_requests) { in rate_limit_host_statistics()
768 g_host_stats_cache[index].current_requests = 1; in rate_limit_host_statistics()
775g_host_stats_cache[index].max_requests = (mach_absolute_time() % (HOST_STATISTICS_MAX_REQUESTS - H… in rate_limit_host_statistics()
776 g_host_stats_cache[index].last_access = mach_continuous_time(); in rate_limit_host_statistics()