From 3dcb842f61995b0a03d7040d6ada88633b0d0e11 Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 16 Oct 2007 10:40:53 +0000 Subject: Export maxswzone, maxbcache, maxtsiz, dfldsiz, maxdsiz, dflssiz, maxssiz, and sgrowsiz via sysctl. MFC after: 1 week --- sys/kern/subr_param.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 833842b..a8c583c 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include @@ -85,6 +86,15 @@ u_long dflssiz; /* initial stack size limit */ u_long maxssiz; /* max stack size */ u_long sgrowsiz; /* amount to grow stack */ +SYSCTL_INT(_kern, OID_AUTO, maxswzone, CTLFLAG_RD, &maxswzone, 0, ""); +SYSCTL_INT(_kern, OID_AUTO, maxbcache, CTLFLAG_RD, &maxbcache, 0, ""); +SYSCTL_ULONG(_kern, OID_AUTO, maxtsiz, CTLFLAG_RD, &maxtsiz, 0, ""); +SYSCTL_ULONG(_kern, OID_AUTO, dfldsiz, CTLFLAG_RD, &dfldsiz, 0, ""); +SYSCTL_ULONG(_kern, OID_AUTO, maxdsiz, CTLFLAG_RD, &maxdsiz, 0, ""); +SYSCTL_ULONG(_kern, OID_AUTO, dflssiz, CTLFLAG_RD, &dflssiz, 0, ""); +SYSCTL_ULONG(_kern, OID_AUTO, maxssiz, CTLFLAG_RD, &maxssiz, 0, ""); +SYSCTL_ULONG(_kern, OID_AUTO, sgrowsiz, CTLFLAG_RD, &sgrowsiz, 0, ""); + /* * These have to be allocated somewhere; allocating * them here forces loader errors if this file is omitted -- cgit v1.1