Searched refs:pid_max (Results 1 – 5 of 5) sorted by relevance
98 pid_t pid_max = PID_MAX; variable211 TUNABLE_INT_FETCH("kern.pid_max", &pid_max); in init_param1()212 if (pid_max > PID_MAX) in init_param1()213 pid_max = PID_MAX; in init_param1()214 else if (pid_max < 300) in init_param1()215 pid_max = 300; in init_param1()256 if (maxproc > pid_max) in init_param2()257 maxproc = pid_max; in init_param2()
571 pm = pid_max; in sysctl_kern_pid_max()585 pid_max = pm; in sysctl_kern_pid_max()590 SYSCTL_PROC(_kern, OID_AUTO, pid_max, CTLTYPE_INT |
201 if (pid < 0 || pid > pid_max - 100) /* out of range */ in sysctl_kern_randompid()202 pid = pid_max - 100; in sysctl_kern_randompid()251 if (trypid >= pid_max) { in fork_findpid()252 trypid = trypid % pid_max; in fork_findpid()
115 static int pid_max; /* kern.max_pid */ variable804 } else if (errno != 0 || tempid > pid_max) { in addelem_pid()1420 intsize = sizeof(pid_max); in pidmax_init()1421 if (sysctlbyname("kern.pid_max", &pid_max, &intsize, NULL, 0) < 0) { in pidmax_init()1423 pid_max = 99999; in pidmax_init()
788 extern pid_t pid_max;