Searched refs:nprocs (Results 1 - 13 of 13) sorted by relevance

/freebsd-current/tools/test/stress2/misc/
H A Dmaxproc.sh123 int i, nprocs, maxproc;
135 if (kvm_read(kd, nl[NL_NPROCS].n_value, &nprocs,
136 sizeof(nprocs)) != sizeof(nprocs))
143 return (maxproc - nprocs - 1);
164 errx(1, "FAIL: nprocs = %d\n", n);
/freebsd-current/bin/sh/
H A Djobs.c93 short nprocs; /* number of processes */ member in struct:job
297 for (ps = jp->ps, i = jp->nprocs ; --i >= 0 ; ps++) {
343 return (jp->ps[jp->nprocs - 1].status);
344 for (i = jp->nprocs - 1; i >= 0; i--) {
358 for (ps = jp->ps, i = jp->nprocs ; --i >= 0 ; ps++) {
377 procno = (mode == SHOWJOBS_PGIDS) ? 1 : jp->nprocs;
393 ps = jp->ps + jp->nprocs - 1;
482 if (jp->nprocs == 0) {
516 for (i = jp->nprocs, ps = jp->ps ; --i >= 0 ; ps++) {
619 for (i = 0 ; i < jp->nprocs ; ) {
744 makejob(union node *node __unused, int nprocs) argument
[all...]
/freebsd-current/contrib/netbsd-tests/kernel/
H A Dt_lockf.c57 #define nprocs 10 /* number of processes to spawn */ macro
144 pid = malloc(nprocs * sizeof(pid_t));
146 for (i = 0; i < nprocs; i++) {
171 for (i = 0; i < nprocs; i++) {
183 for (i = 0; i < nprocs; i++) {
/freebsd-current/usr.bin/killall/
H A Dkillall.c128 int st, nprocs; local
326 nprocs = size / sizeof(struct kinfo_proc);
328 printf("nprocs %d\n", nprocs);
331 for (i = 0; i < nprocs; i++) {
/freebsd-current/lib/libkvm/
H A Dkvm_proc.c199 * nprocs (or the proc list) is corrupt and declare an error.
202 _kvm_err(kd, kd->program, "nprocs corrupt");
521 int mib[4], st, nprocs; local
596 nprocs = size == 0 ? 0 : size / kd->procbase->ki_structsize;
625 if (KREAD(kd, nl[0].n_value, &nprocs)) {
626 _kvm_err(kd, kd->program, "can't read nprocs");
635 nprocs *= 10; /* XXX */
649 size = nprocs * sizeof(struct kinfo_proc);
654 nprocs = kvm_deadprocs(kd, op, arg, nl[1].n_value,
655 nlz[0].n_value, nprocs);
[all...]
/freebsd-current/usr.sbin/jail/
H A Dcommand.c831 j->nprocs++;
864 j->nprocs = 0;
890 return --j->nprocs ? NULL : j;
935 if (j->nprocs > 0) {
H A Djailp.h192 int nprocs; member in struct:cfjail
/freebsd-current/sys/kern/
H A Dkern_fork.c191 int __exclusive_cache_line nprocs = 1; /* process 0 */ variable
921 * Increment the nprocs resource before allocations occur.
931 nprocs_new = atomic_fetchadd_int(&nprocs, 1) + 1;
1097 atomic_add_int(&nprocs, -1);
H A Dkern_exit.c1045 atomic_add_int(&nprocs, -1);
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_affinity.cpp4249 static int __kmp_affinity_find_core_level(int nprocs, int bottom_level) {
4252 for (int i = 0; i < nprocs; i++) {
4266 static int __kmp_affinity_compute_ncores(int nprocs, int bottom_level,
4291 static int __kmp_affinity_max_proc_per_core(int nprocs, int bottom_level,
/freebsd-current/sys/sys/
H A Dproc.h1103 extern int nprocs, maxproc; /* Current and max number of procs. */
/freebsd-current/sys/compat/linprocfs/
H A Dlinprocfs.c914 nprocs, /* number of tasks */
/freebsd-current/sys/compat/linux/
H A Dlinux_misc.c170 sysinfo.procs = nprocs;

Completed in 140 milliseconds