exporting subr_param values as sysctls
Alfred Perlstein
alfred at freebsd.org
Wed Jul 11 17:48:49 UTC 2007
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.
--
- Alfred Perlstein
More information about the freebsd-hackers
mailing list