Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_spin.c50 int nproc; in __os_sysconf() local
52 return ((nproc = sysconf(_SC_NPROCESSORS_ONLN)) > 1 ? nproc : 1); in __os_sysconf()
/illumos-gate/usr/src/cmd/rcap/rcapstat/
H A Drcapstat.c305 char nproc[6]; in print_stats() local
330 (void) strlcpy(nproc, "-", sizeof (nproc)); in print_stats()
332 (void) snprintf(nproc, sizeof (nproc), "%lld", in print_stats()
343 nproc, in print_stats()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvfsops.c304 extern uint_t nproc; in prstatvfs()
306 n = v.v_proc - nproc; in prstatvfs()
H A Dprvnops.c3023 extern uint_t nproc; in prgetattr()
3108 vap->va_nlink = nproc + 2; in prgetattr()
/illumos-gate/usr/src/uts/common/os/
H A Dpid.c74 extern uint_t nproc;
311 nproc--; in pid_exit()
536 nproc = 1; in pid_init()
H A Dfork.c947 extern uint_t nproc; in getproc()
1021 if (nproc == v.v_proc) { in getproc()
1056 ASSERT(nproc < v.v_proc); /* otherwise how'd we get our pid? */ in getproc()
1060 if (nproc >= v.v_maxup && /* short-circuit; usually false */ in getproc()
1061 (nproc >= v.v_maxupttl || in getproc()
1075 nproc++; in getproc()
H A Dkstat_fr.c149 extern uint_t nproc;
160 kstat_named_t nproc; member
842 zone_nproc = nproc; in system_misc_kstat_update()
859 system_misc_kstat.nproc.value.ui32 = (uint32_t)zone_nproc; in system_misc_kstat_update()
H A Dpool.c1352 extern uint_t nproc; in pool_do_bind()
1401 procs_size = nproc * 2; in pool_do_bind()
1406 if (nproc * 2 <= procs_size) in pool_do_bind()
/illumos-gate/usr/src/uts/i86pc/io/apix/
H A Dapix_utils.c98 int nproc; in apix_alloc_ipi() local
110 nproc = max(apic_nproc, apic_max_nproc); in apix_alloc_ipi()
111 for (cpun = 0; cpun < nproc; cpun++) { in apix_alloc_ipi()
146 int nproc; in apix_add_ipi() local
150 nproc = max(apic_nproc, apic_max_nproc); in apix_add_ipi()
151 for (cpun = 0; cpun < nproc; cpun++) { in apix_add_ipi()
H A Dapix.c287 int nproc; in apix_softinit() local
289 nproc = max(apic_nproc, apic_max_nproc); in apix_softinit()
291 hdlp = kmem_zalloc(nproc * sizeof (apix_impl_t), KM_SLEEP); in apix_softinit()
292 for (i = 0; i < nproc; i++) { in apix_softinit()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dconf.c5171 int nproc = 0; in get_num_procs_online() local
5180 sz = (size_t) sizeof(nproc); in get_num_procs_online()
5181 (void) sysctl(mib, 2, &nproc, &sz, NULL, 0); in get_num_procs_online()
5185 nproc = (int) sysconf(_SC_NPROCESSORS_ONLN); in get_num_procs_online()
5192 nproc = psd.psd_proc_cnt; in get_num_procs_online()
5197 if (nproc <= 0) in get_num_procs_online()
5198 nproc = 1; in get_num_procs_online()
5199 return nproc; in get_num_procs_online()
/illumos-gate/usr/src/uts/common/conf/
H A Dparam.c85 uint_t nproc; /* current number of processes */ variable
/illumos-gate/usr/src/cmd/truss/
H A Dexpound.c432 show_fusers(private_t *pri, long offset, long nproc) in show_fusers() argument
435 int serial = (nproc > 4); in show_fusers()
444 while (nproc > 0 && in show_fusers()
451 nproc--; in show_fusers()
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ac/
H A Dusb_ac.c406 extern uint_t nproc;
435 if (nproc < INIT_PROCESS_CNT) { in usb_ac_attach()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlinkprop.c2041 long nproc = sysconf(_SC_NPROCESSORS_CONF); in check_cpus() local
2091 if (cpus[i] >= (uint32_t)nproc) { in check_cpus()