Re: exporting subr_param values as sysctls

看板FB_hackers作者時間18年前 (2007/07/24 10:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
* 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 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16fMeM00 (FB_hackers)
文章代碼(AID): #16fMeM00 (FB_hackers)