Lines Matching refs:nproc
182 {"nproc"}, /* 7 */ /* available from kstat */
920 if ((kn = kstat_data_lookup(ks_system_misc, "nproc")) != NULL)
927 (void) getkval (nproc_offset, (int *) (&ret), sizeof (ret), "nproc");
1194 int nproc;
1298 /* we need to get the current nproc */
1304 nproc = get_nproc();
1305 dprintf("machine_init: nproc=%d\n", nproc);
1307 /* hash table for procs and threads sized based on current nproc*/
1308 prochash = hash_create(nproc > 100 ? nproc * 2 + 1 : 521);
1309 threadhash = hash_create(nproc > 100 ? nproc * 4 + 1 : 2053);
1502 int nproc;
1524 nproc = get_nproc();
1525 if (nproc > procs_max())
1527 procs_prealloc(2 * nproc);
1531 nproc = getptable();
1534 if (pref_size < nproc)
1540 pref = (struct prpsinfo **)malloc(nproc * sizeof(struct prpsinfo *));
1542 nproc, pref);
1543 pref_size = nproc;
1555 for (pp = procs_start(), i = 0; i < nproc;