From owner-freebsd-arch Wed Oct 3 12:38:30 2001 Delivered-To: freebsd-arch@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id 1728537B40B for ; Wed, 3 Oct 2001 12:38:28 -0700 (PDT) Received: from mindspring.com (dialup-209.245.142.238.Dial1.SanJose1.Level3.net [209.245.142.238]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f93JcPP21685; Wed, 3 Oct 2001 12:38:25 -0700 (PDT) Message-ID: <3BBB6962.9894CD87@mindspring.com> Date: Wed, 03 Oct 2001 12:39:14 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Silbersack Cc: freebsd-arch@freebsd.org Subject: Re: Reading physical memory in a cross-platform way References: <20011003131829.D256-100000@achilles.silby.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Silbersack wrote: > > On Wed, 3 Oct 2001, Terry Lambert wrote: > > > Mike Silbersack wrote: > > > 1. Is there a variable / function which contains the size of memory > > > across all platforms that I am missing? > > > > sysctl -A | grep -i mem > > Er, I guess I should explain more. This is code inside the kernel in > various places. I'm just trying to find a quick way to have the number of > bytes of physical memory available on all platforms without any > conversions necessary. Then you want my patch; I will send it to you from work. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message