Home
last modified time | relevance | path

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

/freebsd-head/sys/kern/
HDsubr_param.c97 pid_t pid_max = PID_MAX; variable
262 TUNABLE_INT_FETCH("kern.pid_max", &pid_max); in init_param1()
263 if (pid_max > PID_MAX) in init_param1()
264 pid_max = PID_MAX; in init_param1()
265 else if (pid_max < 300) in init_param1()
266 pid_max = 300; in init_param1()
309 if (maxproc > pid_max) in init_param2()
310 maxproc = pid_max; in init_param2()
HDkern_mib.c744 pm = pid_max; in sysctl_kern_pid_max()
758 pid_max = pm; in sysctl_kern_pid_max()
763 SYSCTL_PROC(_kern, OID_AUTO, pid_max, CTLTYPE_INT |
HDkern_fork.c223 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-head/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-head/bin/ps/
HDps.c111 static int pid_max; /* kern.pid_max */ variable
899 } else if (errno != 0 || tempid > pid_max) { in addelem_pid()
1529 intsize = sizeof(pid_max); in pidmax_init()
1530 if (sysctlbyname("kern.pid_max", &pid_max, &intsize, NULL, 0) < 0) { in pidmax_init()
1532 pid_max = 99999; in pidmax_init()
/freebsd-head/sys/sys/
HDproc.h954 extern pid_t pid_max;