svn commit: r244123 - head/sys/sys

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Dec 11 19:54:36 UTC 2012


Author: pjd
Date: Tue Dec 11 19:54:35 2012
New Revision: 244123
URL: http://svnweb.freebsd.org/changeset/base/244123

Log:
  Similar to CTLFLAG_RDTUN, provide CTLFLAG_RWTUN that defines writable sysctl
  that can also be modified by loader tunable.

Modified:
  head/sys/sys/sysctl.h

Modified: head/sys/sys/sysctl.h
==============================================================================
--- head/sys/sys/sysctl.h	Tue Dec 11 18:39:53 2012	(r244122)
+++ head/sys/sys/sysctl.h	Tue Dec 11 19:54:35 2012	(r244123)
@@ -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 */


More information about the svn-src-all mailing list