From bd6fb64bb3b9f178e5d707daa2119f98c952f04d Mon Sep 17 00:00:00 2001 From: Mike Silbersack Date: Tue, 21 Oct 2003 16:48:33 +0000 Subject: [PATCH] Add another sysctl flag, CTLFLAG_TUN, which is a hint to the userland sysctl that a given variable is tunable. Also added is CTLFLAG_RDTUN, which is CTLFLAG_RD|CTLFLAG_TUN; TUN does not always imply read-only, so RDTUN should be used where RD was used before. --- sys/sys/sysctl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index b570b8c3b45..ed20e503098 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -87,6 +87,8 @@ struct ctlname { #define CTLFLAG_DYN 0x02000000 /* Dynamic oid - can be freed */ #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) /* * Secure level. Note that CTLFLAG_SECURE == CTLFLAG_SECURE1.