Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2007 14:10:18 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        hackers@freebsd.org, Alfred Perlstein <alfred@freebsd.org>
Subject:   Re: exporting subr_param values as sysctls
Message-ID:  <200707111410.18587.jhb@freebsd.org>
In-Reply-To: <20070711172600.GO45894@elvis.mu.org>
References:  <20070711172600.GO45894@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 11 July 2007 01:26:00 pm 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.

Go for it.  At work we already export the ia32 variants for amd64's 
COMPAT_IA32 as sysctls.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707111410.18587.jhb>