]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add CTLFLAG_STATS to sysctl flags
authoralfred <alfred@FreeBSD.org>
Mon, 10 Dec 2012 23:17:08 +0000 (23:17 +0000)
committeralfred <alfred@FreeBSD.org>
Mon, 10 Dec 2012 23:17:08 +0000 (23:17 +0000)
commitf972d172c070d04250d35a0e4f56cf0242bbb098
tree4b33667038962a79d39da678f5f9e28eb30760d3
parentca12c5e1520c9d66ca514b5bb73ba4c569b613b9
Add CTLFLAG_STATS to sysctl flags

In preparation for sysctl(8) growing the ability to only print
out boot/run-time tunables we need a way to differentiate between
RW sysctl nodes that tune a particular thing, or simply export
a stat that we want to allow the sysadmin to reset to 0 (or some
other value).

To do so, we add the CTLFLAG_STATS which should be OR'd into the
CTLFLAGs when exporting a "writable/resettable" statistic node via
sysctl.
sys/sys/sysctl.h