diff options
author | alfred <alfred@FreeBSD.org> | 2012-12-10 23:17:08 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2012-12-10 23:17:08 +0000 |
commit | f972d172c070d04250d35a0e4f56cf0242bbb098 (patch) | |
tree | 4b33667038962a79d39da678f5f9e28eb30760d3 | |
parent | ca12c5e1520c9d66ca514b5bb73ba4c569b613b9 (diff) | |
download | FreeBSD-src-f972d172c070d04250d35a0e4f56cf0242bbb098.zip FreeBSD-src-f972d172c070d04250d35a0e4f56cf0242bbb098.tar.gz |
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.
-rw-r--r-- | sys/sys/sysctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 1577ee5..c1ca438 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -90,6 +90,7 @@ struct ctlname { #define CTLFLAG_DYING 0x00010000 /* oid is being removed */ #define CTLFLAG_CAPRD 0x00008000 /* Can be read in capability mode */ #define CTLFLAG_CAPWR 0x00004000 /* Can be written in capability mode */ +#define CTLFLAG_STATS 0x00002000 /* Statistics, not a tuneable */ #define CTLFLAG_CAPRW (CTLFLAG_CAPRD|CTLFLAG_CAPWR) /* |