Symbol: ncpus
lib/libc/gen/cpuset_alloc.c
30
__cpuset_alloc(size_t ncpus)
lib/libc/gen/cpuset_alloc.c
32
return (malloc(CPU_ALLOC_SIZE(ncpus)));
lib/libc/stdlib/malloc/jemalloc/include/jemalloc/internal/private_namespace.h
26
#define ncpus JEMALLOC_N(ncpus)
lib/libsys/auxv.c
153
ncpus = aux->a_un.a_val;
lib/libsys/auxv.c
228
ncpus = aux->a_un.a_val;
lib/libsys/auxv.c
374
if (ncpus != 0) {
lib/libsys/auxv.c
375
*(int *)buf = ncpus;
lib/libsys/auxv.c
71
static int pagesize, osreldate, canary_len, ncpus, pagesizes_len, bsdflags;
lib/libsys/x86/__vdso_gettc.c
383
int fd, ncpus;
lib/libsys/x86/__vdso_gettc.c
387
if (_elf_aux_info(AT_NCPUS, &ncpus, sizeof(ncpus)) != 0 ||
lib/libsys/x86/__vdso_gettc.c
391
len = ncpus * sizeof(*pvclock_timeinfos);
sys/arm/arm/pmu_fdt.c
120
int rid, err, ncpus, i;
sys/arm/arm/pmu_fdt.c
131
ncpus = OF_getencprop_alloc_multi(node, "interrupt-affinity",
sys/arm/arm/pmu_fdt.c
133
if (ncpus < 0) {
sys/arm/arm/pmu_fdt.c
187
if (has_affinity && i >= ncpus) {
sys/arm/mv/mv_thermal.c
333
for (i = 0; i < sc->config->ncpus; i++) {
sys/arm/mv/mv_thermal.c
77
int ncpus;
sys/arm/mv/mv_thermal.c
97
.ncpus = 4,
sys/dev/acpica/acpi_pxm.c
527
acpi_pxm_init(int ncpus, vm_paddr_t maxphys)
sys/dev/acpica/acpi_pxm.c
535
max_cpus = ncpus;
sys/dev/acpica/acpivar.h
598
int acpi_pxm_init(int ncpus, vm_paddr_t maxphys);
sys/dev/hwpmc/hwpmc_amd.c
813
int error, i, ncpus, nclasses;
sys/dev/hwpmc/hwpmc_amd.c
947
ncpus = pmc_cpu_max();
sys/dev/hwpmc/hwpmc_amd.c
950
error = pmc_tsc_initialize(pmc_mdep, ncpus);
sys/dev/hwpmc/hwpmc_amd.c
987
error = pmc_ibs_initialize(pmc_mdep, ncpus);
sys/dev/hwpmc/hwpmc_ibs.c
554
pmc_ibs_initialize(struct pmc_mdep *pmc_mdep, int ncpus)
sys/dev/hwpmc/hwpmc_intel.c
286
ncpus = pmc_cpu_max();
sys/dev/hwpmc/hwpmc_intel.c
287
error = pmc_tsc_initialize(pmc_mdep, ncpus);
sys/dev/hwpmc/hwpmc_intel.c
292
error = pmc_core_initialize(pmc_mdep, ncpus, verov);
sys/dev/hwpmc/hwpmc_intel.c
328
error = pmc_uncore_initialize(pmc_mdep, ncpus);
sys/dev/hwpmc/hwpmc_intel.c
80
int error, family, model, nclasses, ncpus, stepping, verov;
sys/dev/hwpmc/hwpmc_logging.c
1238
int domain, ncpus, total;
sys/dev/hwpmc/hwpmc_logging.c
1274
ncpus = pmc_dom_hdrs[domain]->pdbh_ncpus;
sys/dev/hwpmc/hwpmc_logging.c
1275
total = ncpus * pmc_nlogbuffers_pcpu;
sys/dev/netmap/netmap_bdg.c
713
u_int ncpus;
sys/dev/netmap/netmap_bdg.c
744
bps->kthreads = nm_os_malloc(sizeof(struct nm_bdg_kthread) * bps->ncpus);
sys/dev/netmap/netmap_bdg.c
750
for (i = 0; i < bps->ncpus; i++) {
sys/dev/netmap/netmap_bdg.c
752
int all = (bps->ncpus == 1 &&
sys/dev/netmap/netmap_bdg.c
794
for (i = 0; i < bps->ncpus; i++) {
sys/dev/netmap/netmap_bdg.c
821
for (i = 0; i < bps->ncpus; i++) {
sys/dev/netmap/netmap_bdg.c
882
bps->ncpus = req_cpus;
sys/kern/subr_smp.c
591
int curcpumap, ncpus = 0;
sys/kern/subr_smp.c
613
ncpus = CPU_COUNT(&map);
sys/kern/subr_smp.c
614
if (ncpus == 0)
sys/kern/subr_smp.c
620
smp_rv_ncpus = ncpus;
sys/kern/subr_smp.c
653
while (atomic_load_acq_int(&smp_rv_waiters[3]) < ncpus)
sys/net/rss_config.c
120
SYSCTL_INT(_net_inet_rss, OID_AUTO, ncpus, CTLFLAG_RD, &rss_ncpus, 0,
sys/netinet/tcp_hpts.c
1836
uint32_t ncpus = mp_ncpus ? mp_ncpus : MAXCPU;
sys/netinet/tcp_hpts.c
1854
pace->rp_num_hptss = ncpus;
sys/powerpc/powernv/xive.c
440
int ncpus, i, error;
sys/powerpc/powernv/xive.c
451
ncpus = 0;
sys/powerpc/powernv/xive.c
453
if (CPU_ISSET(cpu, &cpumask)) ncpus++;
sys/powerpc/powernv/xive.c
455
i = mftb() % ncpus;
sys/powerpc/powernv/xive.c
456
ncpus = 0;
sys/powerpc/powernv/xive.c
460
if (ncpus == i)
sys/powerpc/powernv/xive.c
462
ncpus++;
sys/powerpc/pseries/xics.c
322
int ncpus, i, error = -1;
sys/powerpc/pseries/xics.c
334
ncpus = 0;
sys/powerpc/pseries/xics.c
336
if (CPU_ISSET(cpu, &cpumask)) ncpus++;
sys/powerpc/pseries/xics.c
338
i = mftb() % ncpus;
sys/powerpc/pseries/xics.c
339
ncpus = 0;
sys/powerpc/pseries/xics.c
343
if (ncpus == i)
sys/powerpc/pseries/xics.c
345
ncpus++;
sys/tests/framework/kern_testfrwk.c
128
u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU;
sys/tests/framework/kern_testfrwk.c
141
taskqueue_start_threads(&kfrwk.kfrwk_tq, ncpus, PI_NET, "[kt_frwk task]");
sys/tests/framework/kern_testfrwk.c
142
kfrwk.kfrwk_waiting = ncpus;
sys/tests/framework/kern_testfrwk.c
265
u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU;
sys/tests/framework/kern_testfrwk.c
280
if (ncpus != kfrwk.kfrwk_waiting) {
tests/sys/cddl/zfs/tests/threadsappend/threadsappend.c
101
if (ncpus < 2) {
tests/sys/cddl/zfs/tests/threadsappend/threadsappend.c
87
long ncpus = 0;
tests/sys/cddl/zfs/tests/threadsappend/threadsappend.c
94
ncpus = sysconf(_SC_NPROCESSORS_ONLN);
tests/sys/cddl/zfs/tests/threadsappend/threadsappend.c
95
if (ncpus < 0) {
tools/regression/sockets/unix_close_race/unix_close_race.c
65
u_int counter, ncpus;
tools/regression/sockets/unix_close_race/unix_close_race.c
68
len = sizeof(ncpus);
tools/regression/sockets/unix_close_race/unix_close_race.c
69
if (sysctlbyname("kern.smp.cpus", &ncpus, &len, NULL, 0) < 0)
tools/regression/sockets/unix_close_race/unix_close_race.c
71
if (len != sizeof(ncpus))
tools/regression/sockets/unix_close_race/unix_close_race.c
73
if (ncpus < 2)
tools/tools/netmap/pkt-gen.c
583
int ncpus;
tools/tools/netmap/pkt-gen.c
587
sysctl(mib, 2, &ncpus, &len, NULL, 0);
tools/tools/netmap/pkt-gen.c
589
ncpus = sysconf(_SC_NPROCESSORS_ONLN);
tools/tools/netmap/pkt-gen.c
594
ncpus = sysinfo.dwNumberOfProcessors;
tools/tools/netmap/pkt-gen.c
597
ncpus = 1;
tools/tools/netmap/pkt-gen.c
599
return (ncpus);
tools/tools/netrate/tcpp/tcpp_client.c
216
int ncpus;
tools/tools/netrate/tcpp/tcpp_client.c
220
len = sizeof(ncpus);
tools/tools/netrate/tcpp/tcpp_client.c
221
if (sysctlbyname(SYSCTLNAME_CPUS, &ncpus, &len, NULL, 0) < 0)
tools/tools/netrate/tcpp/tcpp_client.c
223
if (len != sizeof(ncpus))
tools/tools/netrate/tcpp/tcpp_client.c
228
CPU_SET(workernum % ncpus, &mask);
tools/tools/netrate/tcpp/tcpp_server.c
199
int ncpus;
tools/tools/netrate/tcpp/tcpp_server.c
203
len = sizeof(ncpus);
tools/tools/netrate/tcpp/tcpp_server.c
204
if (sysctlbyname(SYSCTLNAME_CPUS, &ncpus, &len, NULL, 0) < 0)
tools/tools/netrate/tcpp/tcpp_server.c
206
if (len != sizeof(ncpus))
tools/tools/netrate/tcpp/tcpp_server.c
211
CPU_SET(workernum % ncpus, &mask);
usr.bin/top/display.c
165
num_cpus = statics->ncpus;
usr.bin/top/display.c
208
lcpustates = calloc(num_cpustates * sizeof(int), statics->ncpus);
usr.bin/top/machine.c
196
static int ncpus;
usr.bin/top/machine.c
317
if (ncpus == 1)
usr.bin/top/machine.c
338
y_mem += ncpus - 1;
usr.bin/top/machine.c
339
y_arc += ncpus - 1;
usr.bin/top/machine.c
340
y_carc += ncpus - 1;
usr.bin/top/machine.c
341
y_swap += ncpus - 1;
usr.bin/top/machine.c
342
y_idlecursor += ncpus - 1;
usr.bin/top/machine.c
343
y_message += ncpus - 1;
usr.bin/top/machine.c
344
y_header += ncpus - 1;
usr.bin/top/machine.c
345
y_procs += ncpus - 1;
usr.bin/top/machine.c
346
Header_lines += ncpus - 1;
usr.bin/top/machine.c
451
ncpus = CPU_COUNT(&cpumask);
usr.bin/top/machine.c
452
assert(ncpus > 0);
usr.bin/top/machine.c
453
pcpu_cp_old = calloc(ncpus * CPUSTATES, sizeof(long));
usr.bin/top/machine.c
454
pcpu_cp_diff = calloc(ncpus * CPUSTATES, sizeof(long));
usr.bin/top/machine.c
455
pcpu_cpu_states = calloc(ncpus * CPUSTATES, sizeof(int));
usr.bin/top/machine.c
456
statics->ncpus = ncpus;
usr.bin/top/machine.c
642
si->ncpus = ncpus;
usr.bin/top/machine.c
645
si->ncpus = 1;
usr.bin/top/machine.h
33
int ncpus;
usr.bin/top/machine.h
54
int ncpus;
usr.sbin/bhyve/bhyverun.c
314
uint64_t ncpus;
usr.sbin/bhyve/bhyverun.c
344
ncpus = (uint64_t)cpu_sockets * cpu_cores * cpu_threads;
usr.sbin/bhyve/bhyverun.c
345
if (ncpus > UINT16_MAX)
usr.sbin/bhyve/bhyverun.c
347
(uintmax_t)ncpus);
usr.sbin/bhyve/bhyverun.c
350
if (guest_ncpus != (int)ncpus)
usr.sbin/bhyve/bhyverun.c
356
guest_ncpus = ncpus;
usr.sbin/bhyve/snapshot.c
520
int64_t ncpus;
usr.sbin/bhyve/snapshot.c
527
JSON_GET_INT_OR_RETURN(JSON_NCPUS_KEY, obj, &ncpus, 0);
usr.sbin/bhyve/snapshot.c
528
return ((int)ncpus);
usr.sbin/powerd/powerd.c
156
static int ncpus = 0;
usr.sbin/powerd/powerd.c
172
ncpus = cp_times_len / (sizeof(long) * CPUSTATES);
usr.sbin/powerd/powerd.c
175
cp_times_len = sizeof(long) * CPUSTATES * ncpus;
usr.sbin/powerd/powerd.c
182
for (cpu = 0; cpu < ncpus; cpu++) {