Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 1997 07:46:46 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG (hackers@freebsd.org)
Subject:   Re: special malloc needs...
Message-ID:  <19970826074646.HW60392@uriah.heep.sax.de>
In-Reply-To: <19970826124223.62337@lemis.com>; from Greg Lehey on Aug 26, 1997 12:42:23 %2B0930
References:  <199708251630.JAA18241@dragon.awen.com> <19970825222008.PD53308@uriah.heep.sax.de> <19970826124223.62337@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As Greg Lehey wrote:

> > 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).

Of course, you can't.  MAP_FIXED (if it succeeds at all) guarantees
you a fixed VM address, nothing else.  It's still VM, where each
succeeding page can be anywhere in physical memory.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970826074646.HW60392>