summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-12-11 19:54:35 +0000
committerpjd <pjd@FreeBSD.org>2012-12-11 19:54:35 +0000
commita7fcf2f03c9308919813de55024f3f95d062dfdb (patch)
treed5f51753951bfeb45b154f1b9ea6be8b7d248bc0 /sys/sys
parent832e89b972db36ebe132adfe2172194dbd67b127 (diff)
downloadFreeBSD-src-a7fcf2f03c9308919813de55024f3f95d062dfdb.zip
FreeBSD-src-a7fcf2f03c9308919813de55024f3f95d062dfdb.tar.gz
Similar to CTLFLAG_RDTUN, provide CTLFLAG_RWTUN that defines writable sysctl
that can also be modified by loader tunable.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/sysctl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index c1ca438..e575f22 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -84,9 +84,10 @@ struct ctlname {
#define CTLFLAG_SKIP 0x01000000 /* Skip this sysctl when listing */
#define CTLMASK_SECURE 0x00F00000 /* Secure level */
#define CTLFLAG_TUN 0x00080000 /* Tunable variable */
+#define CTLFLAG_RDTUN (CTLFLAG_RD|CTLFLAG_TUN)
+#define CTLFLAG_RWTUN (CTLFLAG_RW|CTLFLAG_TUN)
#define CTLFLAG_MPSAFE 0x00040000 /* Handler is MP safe */
#define CTLFLAG_VNET 0x00020000 /* Prisons with vnet can fiddle */
-#define CTLFLAG_RDTUN (CTLFLAG_RD|CTLFLAG_TUN)
#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 */
OpenPOWER on IntegriCloud