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.
This commit is contained in:
Mike Silbersack 2003-10-21 16:48:33 +00:00
parent aa6a0037e2
commit bd6fb64bb3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121305

View File

@ -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.