From owner-freebsd-hackers Mon Aug 25 20:13:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA01123 for hackers-outgoing; Mon, 25 Aug 1997 20:13:06 -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 UAA01116 for ; Mon, 25 Aug 1997 20:13:02 -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 NAA12527; Tue, 26 Aug 1997 13:12:24 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id MAA08139; Tue, 26 Aug 1997 12:42:23 +0930 (CST) Message-ID: <19970826124223.62337@lemis.com> Date: Tue, 26 Aug 1997 12:42:23 +0930 From: Greg Lehey To: Joerg Wunsch Cc: "hackers@freebsd.org" , Mike Burgett Subject: Re: special malloc needs... References: <199708251630.JAA18241@dragon.awen.com> <19970825222008.PD53308@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <19970825222008.PD53308@uriah.heep.sax.de>; from J Wunsch on Mon, Aug 25, 1997 at 10:20:08PM +0200 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 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). > What the h*ck would you need this in a userland program? Good question. It sounds like a bad practice to me. Greg