Searched refs:pid_max (Results 1 – 5 of 5) sorted by relevance
98 pid_t pid_max = PID_MAX; variable219 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()
543 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 |
206 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()
114 static int pid_max; /* kern.max_pid */ variable786 } 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()
768 extern pid_t pid_max;