From owner-cvs-all Sun Sep 8 2:13:56 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4824A37B400; Sun, 8 Sep 2002 02:13:51 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 032F943E42; Sun, 8 Sep 2002 02:13:50 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id TAA25725; Sun, 8 Sep 2002 19:13:48 +1000 Date: Sun, 8 Sep 2002 19:21:24 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Peter Wemm Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/sys/kern kern_proc.c src/sys/sys systm.h In-Reply-To: <200209072211.g87MBjQB089741@freefall.freebsd.org> Message-ID: <20020908192024.N2381-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 7 Sep 2002, Peter Wemm wrote: > peter 2002/09/07 15:11:45 PDT > > Modified files: > sys/kern kern_proc.c > sys/sys systm.h > Log: > Make UAREA_PAGES and KSTACK_PAGES visible to userland via sysctl, like > PS_STRINGS and USRSTACK is. This is necessary in order to decode a.out > core dumps. kern_proc.c was already referring to both of these values > but was missing the #include "opt_kstack_pages.h". Make the sysctl > variables visible so that certain kld modules can see how their parent > kernel was configured. Please do something to make the original macros inaccessible so that they can't be used inadvertantly or advertantly (if you haven't already). Many other things in <*/param.h> that are actually parameters need this treatment. A sysctl call (not just a variable) may be the best way to get the parameters even in modules. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message