Lines Matching refs:info

49   struct loadavg info;  in uv_loadavg()  local
50 size_t size = sizeof(info); in uv_loadavg()
53 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
55 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg()
56 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg()
57 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg()
114 struct uvmexp info; in uv_get_free_memory() local
115 size_t size = sizeof(info); in uv_get_free_memory()
118 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
121 return (uint64_t) info.free * sysconf(_SC_PAGESIZE); in uv_get_free_memory()
126 uint64_t info; in uv_get_total_memory() local
128 size_t size = sizeof(info); in uv_get_total_memory()
130 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
133 return (uint64_t) info; in uv_get_total_memory()
170 struct timeval info; in uv_uptime() local
171 size_t size = sizeof(info); in uv_uptime()
174 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
179 *uptime = (double)(now - info.tv_sec); in uv_uptime()
187 uint64_t info[CPUSTATES]; in uv_cpu_info() local
217 size = sizeof(info); in uv_cpu_info()
220 if (sysctl(percpu, ARRAY_SIZE(percpu), &info, &size, NULL, 0)) in uv_cpu_info()
225 cpu_info->cpu_times.user = (uint64_t)(info[CP_USER]) * multiplier; in uv_cpu_info()
226 cpu_info->cpu_times.nice = (uint64_t)(info[CP_NICE]) * multiplier; in uv_cpu_info()
227 cpu_info->cpu_times.sys = (uint64_t)(info[CP_SYS]) * multiplier; in uv_cpu_info()
228 cpu_info->cpu_times.idle = (uint64_t)(info[CP_IDLE]) * multiplier; in uv_cpu_info()
229 cpu_info->cpu_times.irq = (uint64_t)(info[CP_INTR]) * multiplier; in uv_cpu_info()