Home
last modified time | relevance | path

Searched refs:pid_max (Results 1 – 5 of 5) sorted by relevance

/freebsd-10-stable/sys/kern/
Dsubr_param.c98 pid_t pid_max = PID_MAX; variable
219 TUNABLE_INT_FETCH("kern.pid_max", &pid_max); in init_param1()
220 if (pid_max > PID_MAX) in init_param1()
221 pid_max = PID_MAX; in init_param1()
222 else if (pid_max < 300) in init_param1()
223 pid_max = 300; in init_param1()
264 if (maxproc > pid_max) in init_param2()
265 maxproc = pid_max; in init_param2()
Dkern_mib.c543 pm = pid_max; in sysctl_kern_pid_max()
557 pid_max = pm; in sysctl_kern_pid_max()
562 SYSCTL_PROC(_kern, OID_AUTO, pid_max, CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_TUN |
Dkern_fork.c206 if (pid < 0 || pid > pid_max - 100) /* out of range */ in sysctl_kern_randompid()
207 pid = pid_max - 100; in sysctl_kern_randompid()
256 if (trypid >= pid_max) { in fork_findpid()
257 trypid = trypid % pid_max; in fork_findpid()
/freebsd-10-stable/bin/ps/
Dps.c114 static int pid_max; /* kern.max_pid */ variable
786 } else if (errno != 0 || tempid > pid_max) { in addelem_pid()
1405 intsize = sizeof(pid_max); in pidmax_init()
1406 if (sysctlbyname("kern.pid_max", &pid_max, &intsize, NULL, 0) < 0) { in pidmax_init()
1408 pid_max = 99999; in pidmax_init()
/freebsd-10-stable/sys/sys/
Dproc.h768 extern pid_t pid_max;