| /src/external/mit/libuv/dist/src/unix/ |
| linux-core.c | 78 static int read_models(unsigned int numcpus, uv_cpu_info_t* ci); 80 unsigned int numcpus, 82 static void read_speeds(unsigned int numcpus, uv_cpu_info_t* ci); 246 static int uv__cpu_num(FILE* statfile_fp, unsigned int* numcpus) { 263 *numcpus = num; 269 unsigned int numcpus; local 281 err = uv__cpu_num(statfile_fp, &numcpus); 286 ci = uv__calloc(numcpus, sizeof(*ci)); 290 err = read_models(numcpus, ci); 292 err = read_times(statfile_fp, numcpus, ci) [all...] |
| netbsd.c | 193 int numcpus; local 203 size = sizeof(numcpus); 204 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) 206 *count = numcpus; 213 size = numcpus * CPUSTATES * sizeof(*cp_times); 221 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); 228 for (i = 0; i < numcpus; i++) {
|
| freebsd.c | 192 int numcpus; local 224 size = sizeof(numcpus); 225 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) 228 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); 232 *count = numcpus; 257 for (i = 0; i < numcpus; i++) {
|
| openbsd.c | 189 int numcpus = 1; local 201 size = sizeof(numcpus); 202 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) 205 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); 210 *count = numcpus; 226 for (i = 0; i < numcpus; i++) {
|
| darwin.c | 189 natural_t numcpus; local 208 if (host_processor_info(mach_host_self(), PROCESSOR_CPU_LOAD_INFO, &numcpus, 214 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); 220 *count = numcpus; 222 for (i = 0; i < numcpus; i++) {
|
| ibmi.c | 288 unsigned int numcpus, idx = 0; local 294 numcpus = sysconf(_SC_NPROCESSORS_ONLN); 296 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); 302 for (idx = 0; idx < numcpus; idx++) { 312 *count = numcpus;
|
| /src/sys/dev/i2c/ |
| ibmhawkreg.h | 39 uint8_t numcpus; member in struct:ibmhawk_response::__anon2589 44 #define ihr_numcpus resp_equip.numcpus
|
| /src/sys/arch/x86/x86/ |
| mainbus.c | 145 int numcpus = 0; local 182 mpacpi_active = mpacpi_scan_apics(self, &numcpus) != 0; 188 mpbios_scan(self, &numcpus); 191 if (numcpus == 0) {
|
| /src/external/bsd/top/dist/machine/ |
| m_irix5.c | 104 static int numcpus; variable 355 numcpus = sysmp(MP_NPROCS); 358 if (numcpus > 1) { 451 if (numcpus > 1) {
|
| m_irixsgi.c | 175 int numcpus; variable 270 (pp->pr_sonproc >= 0 && pp->pr_sonproc < numcpus) ? 429 if ((numcpus = sysmp(MP_NPROCS)) == -1) { 546 * only if it falls within range [0..numcpus-1]
|