HomeFreeBSD

kern: Introduce kern.pid_max_limit sysctl.

Description

kern: Introduce kern.pid_max_limit sysctl.

The kern.pid_max_limit will hold the PID_MAX value the kernel was
compiled with. The existing kern.pid_max sysctl can be modified and
doesn't really represent maximum PID number in the system, as there
may still be processes created with higher PIDs before kern.pid_max
was lowered.

Reivewed by: kib, zlei
Approved by: oshogbo
Differential Revision: https://reviews.freebsd.org/D43077

Details

Provenance
pjdAuthored on Dec 30 2023, 6:15 AM
Differential Revision
D43077: Don't hardcode maximum PID.
Parents
rG84b4342c0d7a: copy_file_range.2: Clarify that only regular files work
Branches
Unknown
Tags
Unknown