From owner-freebsd-hackers Mon Aug 25 21:00:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA03692 for hackers-outgoing; Mon, 25 Aug 1997 21:00:15 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA03681 for ; Mon, 25 Aug 1997 21:00:04 -0700 (PDT) Received: from word.smith.net.au (lot.atrad.adelaide.edu.au [203.20.121.21]) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) with ESMTP id NAA22897 for ; Tue, 26 Aug 1997 13:29:53 +0930 (CST) Received: from word.smith.net.au (localhost.atrad.adelaide.edu.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id NAA00731; Tue, 26 Aug 1997 13:22:51 +0930 (CST) Message-Id: <199708260352.NAA00731@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Greg Lehey cc: Joerg Wunsch , "hackers@freebsd.org" , Mike Burgett Subject: Re: special malloc needs... In-reply-to: Your message of "Tue, 26 Aug 1997 12:42:23 +0930." <19970826124223.62337@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 26 Aug 1997 13:22:50 +0930 From: Mike Smith 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). This only gives you a fixed _virtual_ address. > > What the h*ck would you need this in a userland program? > > Good question. It sounds like a bad practice to me. It's almost guaranteed that either there is a hidden agenda (and I hate it when people don't explain their stupid questions), or the individual in question doesn't understand what they're asking. So Mike, what is it? mike