kern_mib.c (259465) | kern_mib.c (269446) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Mike Karels at Berkeley Software Design, Inc. 7 * 8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD --- 22 unchanged lines hidden (view full) --- 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 36 */ 37 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Mike Karels at Berkeley Software Design, Inc. 7 * 8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD --- 22 unchanged lines hidden (view full) --- 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: stable/10/sys/kern/kern_mib.c 259465 2013-12-16 15:00:06Z nwhitehorn $"); | 39__FBSDID("$FreeBSD: stable/10/sys/kern/kern_mib.c 269446 2014-08-02 20:58:46Z hselasky $"); |
40 41#include "opt_compat.h" 42#include "opt_posix.h" 43#include "opt_config.h" 44 45#include <sys/param.h> 46#include <sys/kernel.h> 47#include <sys/sbuf.h> 48#include <sys/systm.h> 49#include <sys/sysctl.h> 50#include <sys/proc.h> 51#include <sys/lock.h> 52#include <sys/mutex.h> 53#include <sys/jail.h> 54#include <sys/smp.h> 55#include <sys/sx.h> 56#include <sys/unistd.h> 57 | 40 41#include "opt_compat.h" 42#include "opt_posix.h" 43#include "opt_config.h" 44 45#include <sys/param.h> 46#include <sys/kernel.h> 47#include <sys/sbuf.h> 48#include <sys/systm.h> 49#include <sys/sysctl.h> 50#include <sys/proc.h> 51#include <sys/lock.h> 52#include <sys/mutex.h> 53#include <sys/jail.h> 54#include <sys/smp.h> 55#include <sys/sx.h> 56#include <sys/unistd.h> 57 |
58SYSCTL_NODE(, 0, sysctl, CTLFLAG_RW, 0, | 58SYSCTL_ROOT_NODE(0, sysctl, CTLFLAG_RW, 0, |
59 "Sysctl internal magic"); | 59 "Sysctl internal magic"); |
60SYSCTL_NODE(, CTL_KERN, kern, CTLFLAG_RW|CTLFLAG_CAPRD, 0, | 60SYSCTL_ROOT_NODE(CTL_KERN, kern, CTLFLAG_RW|CTLFLAG_CAPRD, 0, |
61 "High kernel, proc, limits &c"); | 61 "High kernel, proc, limits &c"); |
62SYSCTL_NODE(, CTL_VM, vm, CTLFLAG_RW, 0, | 62SYSCTL_ROOT_NODE(CTL_VM, vm, CTLFLAG_RW, 0, |
63 "Virtual memory"); | 63 "Virtual memory"); |
64SYSCTL_NODE(, CTL_VFS, vfs, CTLFLAG_RW, 0, | 64SYSCTL_ROOT_NODE(CTL_VFS, vfs, CTLFLAG_RW, 0, |
65 "File system"); | 65 "File system"); |
66SYSCTL_NODE(, CTL_NET, net, CTLFLAG_RW, 0, | 66SYSCTL_ROOT_NODE(CTL_NET, net, CTLFLAG_RW, 0, |
67 "Network, (see socket.h)"); | 67 "Network, (see socket.h)"); |
68SYSCTL_NODE(, CTL_DEBUG, debug, CTLFLAG_RW, 0, | 68SYSCTL_ROOT_NODE(CTL_DEBUG, debug, CTLFLAG_RW, 0, |
69 "Debugging"); 70SYSCTL_NODE(_debug, OID_AUTO, sizeof, CTLFLAG_RW, 0, 71 "Sizeof various things"); | 69 "Debugging"); 70SYSCTL_NODE(_debug, OID_AUTO, sizeof, CTLFLAG_RW, 0, 71 "Sizeof various things"); |
72SYSCTL_NODE(, CTL_HW, hw, CTLFLAG_RW, 0, | 72SYSCTL_ROOT_NODE(CTL_HW, hw, CTLFLAG_RW, 0, |
73 "hardware"); | 73 "hardware"); |
74SYSCTL_NODE(, CTL_MACHDEP, machdep, CTLFLAG_RW, 0, | 74SYSCTL_ROOT_NODE(CTL_MACHDEP, machdep, CTLFLAG_RW, 0, |
75 "machine dependent"); | 75 "machine dependent"); |
76SYSCTL_NODE(, CTL_USER, user, CTLFLAG_RW, 0, | 76SYSCTL_ROOT_NODE(CTL_USER, user, CTLFLAG_RW, 0, |
77 "user-level"); | 77 "user-level"); |
78SYSCTL_NODE(, CTL_P1003_1B, p1003_1b, CTLFLAG_RW, 0, | 78SYSCTL_ROOT_NODE(CTL_P1003_1B, p1003_1b, CTLFLAG_RW, 0, |
79 "p1003_1b, (see p1003_1b.h)"); 80 | 79 "p1003_1b, (see p1003_1b.h)"); 80 |
81SYSCTL_NODE(, OID_AUTO, compat, CTLFLAG_RW, 0, | 81SYSCTL_ROOT_NODE(OID_AUTO, compat, CTLFLAG_RW, 0, |
82 "Compatibility code"); | 82 "Compatibility code"); |
83SYSCTL_NODE(, OID_AUTO, security, CTLFLAG_RW, 0, | 83SYSCTL_ROOT_NODE(OID_AUTO, security, CTLFLAG_RW, 0, |
84 "Security"); 85#ifdef REGRESSION | 84 "Security"); 85#ifdef REGRESSION |
86SYSCTL_NODE(, OID_AUTO, regression, CTLFLAG_RW, 0, | 86SYSCTL_ROOT_NODE(OID_AUTO, regression, CTLFLAG_RW, 0, |
87 "Regression test MIB"); 88#endif 89 90SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD|CTLFLAG_MPSAFE, 91 kern_ident, 0, "Kernel identifier"); 92 93SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD|CTLFLAG_MPSAFE| 94 CTLFLAG_CAPRD, osrelease, 0, "Operating system release"); --- 455 unchanged lines hidden --- | 87 "Regression test MIB"); 88#endif 89 90SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD|CTLFLAG_MPSAFE, 91 kern_ident, 0, "Kernel identifier"); 92 93SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD|CTLFLAG_MPSAFE| 94 CTLFLAG_CAPRD, osrelease, 0, "Operating system release"); --- 455 unchanged lines hidden --- |