From owner-freebsd-amd64@FreeBSD.ORG Tue Oct 7 16:22:23 2014 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BC74F5F0 for ; Tue, 7 Oct 2014 16:22:23 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 969A8980 for ; Tue, 7 Oct 2014 16:22:23 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A866AB953; Tue, 7 Oct 2014 12:22:21 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Subject: Re: memory type e820 Date: Tue, 7 Oct 2014 10:50:34 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201410071050.34285.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 07 Oct 2014 12:22:21 -0400 (EDT) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 16:22:23 -0000 On Wednesday, September 24, 2014 5:12:37 am Sourish Mazumder wrote: > Hi, > > Does freebsd has a linux equivalent of the function e820_any_mapped() ? > This function is used to scan the system memory for a specific type. > > How to scan the system memory in freebsd? There is not an equivalent function, no. There is phys_avail[] (memory pages available for the VM system to use, doesn't include some early allocations such as the message buffer) and dump_avail[] (all memory pages). What are you trying to scan for? -- John Baldwin