Home
last modified time | relevance | path

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

/xnu-8020.121.3/osfmk/kern/
H A Dhost.c635 static struct host_stats_cache g_host_stats_cache[NUM_HOST_INFO_DATA_TYPES] = { variable
667 …memcpy((void *)g_host_stats_cache[index].data, info, g_host_stats_cache[index].count * sizeof(inte… in cache_host_statistics()
679 *count = g_host_stats_cache[index].count; in get_cached_info()
680 …memcpy(info, (void *)g_host_stats_cache[index].data, g_host_stats_cache[index].count * sizeof(inte… in get_cached_info()
782 if (g_host_stats_cache[index].last_access > mach_continuous_time() - host_statistics_time_window) { in rate_limit_host_statistics()
784 if (g_host_stats_cache[index].current_requests++ >= g_host_stats_cache[index].max_requests) { in rate_limit_host_statistics()
790 g_host_stats_cache[index].current_requests = 1; in rate_limit_host_statistics()
797g_host_stats_cache[index].max_requests = (mach_absolute_time() % (HOST_STATISTICS_MAX_REQUESTS - H… in rate_limit_host_statistics()
798 g_host_stats_cache[index].last_access = mach_continuous_time(); in rate_limit_host_statistics()