While I am reading procstat(1) source code I find these constants (KERN_PROC, CTL_KERN, KERN_PROC_PID etc...) used many times (especially as a part from sysctl argument), so what do these constants mean, and for what are they used?
I think they are used to identify the structure or type of data that's being returned from a sysctl call. They're all defined in /usr/include/sys/sysctl.h.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.