Searched refs:pid_max (Results 1 – 6 of 6) sorted by relevance
/freebsd/sys/kern/ |
H A D | subr_param.c | 97 pid_t pid_max = PID_MAX; variable 243 TUNABLE_INT_FETCH("kern.pid_max", &pid_max); in init_param1() 244 if (pid_max > PID_MAX) in init_param1() 245 pid_max = PID_MAX; in init_param1() 246 else if (pid_max < 300) in init_param1() 247 pid_max = 300; in init_param1() 290 if (maxproc > pid_max) in init_param2() 291 maxproc = pid_max; in init_param2()
|
H A D | kern_mib.c | 734 pm = pid_max; in sysctl_kern_pid_max() 748 pid_max = pm; in sysctl_kern_pid_max() 753 SYSCTL_PROC(_kern, OID_AUTO, pid_max, CTLTYPE_INT |
|
H A D | kern_fork.c | 223 else if (pid < 0 || pid > pid_max - 100) in sysctl_kern_randompid() 225 randompid = pid_max - 100; in sysctl_kern_randompid() 275 if (trypid >= pid_max) in fork_findpid() 278 bit_ffc_at(&proc_id_pidmap, trypid, pid_max, &result); in fork_findpid()
|
/freebsd/tests/sys/kern/ |
H A D | sysctl_kern_proc.c | 33 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/bin/ps/ |
H A D | ps.c | 102 static int pid_max; /* kern.pid_max */ variable 850 } else if (errno != 0 || tempid > pid_max) { in addelem_pid() 1471 intsize = sizeof(pid_max); in pidmax_init() 1472 if (sysctlbyname("kern.pid_max", &pid_max, &intsize, NULL, 0) < 0) { in pidmax_init() 1474 pid_max = 99999; in pidmax_init()
|
/freebsd/sys/sys/ |
H A D | proc.h | 955 extern pid_t pid_max;
|