summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-11 05:10:42 -0400
committerIan Moffett <ian@osmora.org>2025-08-11 05:10:42 -0400
commit90861a9b3594074ac7d21d8fe8752b2df01587d6 (patch)
tree48cf3b4a270796c73ad298af1ad5875b422bb29f /sys/include
parent601cec0d230f4abfb7fed008e18e03c192ff2750 (diff)
kernel: sysctl: Add 'proc.count' entry
Introduce the 'proc.count' sysctl variable which contains the number of running processes in the system. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/sysctl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/include/sys/sysctl.h b/sys/include/sys/sysctl.h
index 3b8d3c7..ce7510d 100644
--- a/sys/include/sys/sysctl.h
+++ b/sys/include/sys/sysctl.h
@@ -56,6 +56,11 @@
#define HW_MACHINE 7
/*
+ * List of 'proc.*' identifiers
+ */
+#define PROC_COUNT 8
+
+/*
* Option types (i.e., int, string, etc) for
* sysctl entries.
*