Home
last modified time | relevance | path

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

/freebsd-14-stable/sys/kern/
HDsubr_param.c98 pid_t pid_max = PID_MAX; variable
263 TUNABLE_INT_FETCH("kern.pid_max", &pid_max); in init_param1()
264 if (pid_max > PID_MAX) in init_param1()
265 pid_max = PID_MAX; in init_param1()
266 else if (pid_max < 300) in init_param1()
267 pid_max = 300; in init_param1()
310 if (maxproc > pid_max) in init_param2()
311 maxproc = pid_max; in init_param2()
HDkern_mib.c736 pm = pid_max; in sysctl_kern_pid_max()
750 pid_max = pm; in sysctl_kern_pid_max()
755 SYSCTL_PROC(_kern, OID_AUTO, pid_max, CTLTYPE_INT |
HDkern_fork.c225 else if (pid < 0 || pid > pid_max - 100) in sysctl_kern_randompid()
227 randompid = pid_max - 100; in sysctl_kern_randompid()
277 if (trypid >= pid_max) in fork_findpid()
280 bit_ffc_at(&proc_id_pidmap, trypid, pid_max, &result); in fork_findpid()
/freebsd-14-stable/tests/sys/kern/
HDsysctl_kern_proc.c33 int mib[4], pid_max; in sysctl_kern_proc_all() local
37 sz = sizeof(pid_max); in sysctl_kern_proc_all()
38 ATF_REQUIRE(sysctlbyname("kern.pid_max", &pid_max, &sz, NULL, 0) == 0); in sysctl_kern_proc_all()
43 for (int i = 1; i <= pid_max; i++) { in sysctl_kern_proc_all()
/freebsd-14-stable/sys/sys/
HDproc.h963 extern pid_t pid_max;