Date: Thu, 12 Jul 2007 11:23:41 -0700 From: Alfred Perlstein <alfred@freebsd.org> To: Paul Saab <ps@freebsd.org> Cc: hackers@freebsd.org Subject: Re: exporting subr_param values as sysctls Message-ID: <20070712182341.GG45894@elvis.mu.org> In-Reply-To: <46966F79.30203@freebsd.org> References: <20070711172600.GO45894@elvis.mu.org> <46966F79.30203@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Paul Saab <ps@freebsd.org> [070712 11:14] wrote:
> Alfred Perlstein wrote:
> >I would like to export the various parameters from subr_param.c
> >into sysctl, these nodes would include the names from the following
> >tunables as well as others in these files.
> >
> > TUNABLE_ULONG_FETCH("kern.maxtsiz", &maxtsiz);
> > dfldsiz = DFLDSIZ;
> > TUNABLE_ULONG_FETCH("kern.dfldsiz", &dfldsiz);
> > maxdsiz = MAXDSIZ;
> > TUNABLE_ULONG_FETCH("kern.maxdsiz", &maxdsiz);
> > dflssiz = DFLSSIZ;
> > TUNABLE_ULONG_FETCH("kern.dflssiz", &dflssiz);
> > maxssiz = MAXSSIZ;
> > TUNABLE_ULONG_FETCH("kern.maxssiz", &maxssiz);
> > sgrowsiz = SGROWSIZ;
> > TUNABLE_ULONG_FETCH("kern.sgrowsiz", &sgrowsiz);
> >
> >any objections?
> >
> >I don't see any obvious way to get at these values on a running
> >system.
>
> Do it, but you can get them via kenv.. ;)
only if set from the loader, right?
--
- Alfred Perlstein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070712182341.GG45894>
