From owner-freebsd-hackers Mon Aug 25 21:03:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA03919 for hackers-outgoing; Mon, 25 Aug 1997 21:03:32 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA03914 for ; Mon, 25 Aug 1997 21:03:26 -0700 (PDT) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id OAA13976; Tue, 26 Aug 1997 14:02:34 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id NAA08922; Tue, 26 Aug 1997 13:32:33 +0930 (CST) Message-ID: <19970826133233.19386@lemis.com> Date: Tue, 26 Aug 1997 13:32:33 +0930 From: Greg Lehey To: Mike Smith Cc: Joerg Wunsch , "hackers@freebsd.org" , Mike Burgett Subject: Re: special malloc needs... References: <19970826124223.62337@lemis.com> <199708260352.NAA00731@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199708260352.NAA00731@word.smith.net.au>; from Mike Smith on Tue, Aug 26, 1997 at 01:22:50PM +0930 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Aug 26, 1997 at 01:22:50PM +0930, Mike Smith wrote: >> On Mon, Aug 25, 1997 at 10:20:08PM +0200, J Wunsch wrote: >>> As Mike Burgett wrote: >>> >>>> Is there any way to malloc memory (from userland code) that is at >>>> specific offsets from each other in physical memory (i.e. 2 chunks >>>> exactly XXM apart in physical RAM) or failing that, to allocate a >>>> very large (>32M) chunk of contig physical RAM? (again, from >>>> userland?) >>> >>> No, you can't do this. You get virtual memory, nothing else. It's >>> not even backed with physical memory at all when you've got it. >> >> Well, you can't malloc() it, but you can try to mmap() it with >> MAP_FIXED. man mmap(2). > > This only gives you a fixed _virtual_ address. Yes, it does. That's what I thought he wanted. Re-reading the original message, I see I was wrong. Mike (B), whatever do you want to allocate physical memory for? Greg