Home
last modified time | relevance | path

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

/libuv/src/unix/
H A Dnetbsd.c193 int numcpus; in uv_cpu_info() local
203 size = sizeof(numcpus); in uv_cpu_info()
204 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
206 *count = numcpus; in uv_cpu_info()
213 size = numcpus * CPUSTATES * sizeof(*cp_times); in uv_cpu_info()
221 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
228 for (i = 0; i < numcpus; i++) { in uv_cpu_info()
H A Dfreebsd.c192 int numcpus; in uv_cpu_info() local
224 size = sizeof(numcpus); in uv_cpu_info()
225 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
228 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
232 *count = numcpus; in uv_cpu_info()
257 for (i = 0; i < numcpus; i++) { in uv_cpu_info()
H A Dopenbsd.c189 int numcpus = 1; in uv_cpu_info() local
201 size = sizeof(numcpus); in uv_cpu_info()
202 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
205 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
210 *count = numcpus; in uv_cpu_info()
218 for (i = 0; i < numcpus; i++) { in uv_cpu_info()
H A Ddarwin.c189 natural_t numcpus; in uv_cpu_info() local
208 if (host_processor_info(mach_host_self(), PROCESSOR_CPU_LOAD_INFO, &numcpus, in uv_cpu_info()
214 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
220 *count = numcpus; in uv_cpu_info()
222 for (i = 0; i < numcpus; i++) { in uv_cpu_info()
H A Dibmi.c288 unsigned int numcpus, idx = 0; in uv_cpu_info() local
294 numcpus = sysconf(_SC_NPROCESSORS_ONLN); in uv_cpu_info()
296 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); in uv_cpu_info()
302 for (idx = 0; idx < numcpus; idx++) { in uv_cpu_info()
312 *count = numcpus; in uv_cpu_info()

Completed in 16 milliseconds