From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48909E94.40800@telus.net> Date: Wed, 30 Jul 2008 10:02:12 -0700 From: Paul Lalonde User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <20080717142135.539A31E8C1C@holo.morphisms.net> <20080729085214.GA3072@nibiru.local> <20080729162834.GC31092@satori.no-ip.org> <1217435773.5036.129.camel@goose.sun.com> In-Reply-To: <1217435773.5036.129.camel@goose.sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [9fans] mmap Topicbox-Message-UUID: f68fdaea-ead3-11e9-9d60-3106f5b1d025 Roman V. Shaposhnik wrote: > Personally, my > experience of trying to use mmap() as a useful abstraction for the > CPU's MMU was the last straw. It can't do even that reliably > and in a portable fashion. Not to digress, but I was even more surprised > to learn that there's not a single API on UNIX that can: > http://thread.gmane.org/gmane.os.netbsd.devel.kernel/6392/focus=6457 > Amen. I've had to get our OS team to shoehorn in some remap() calls that let me point two(many) virtual addresses to a common physical address. It's disgusting that the process for doing this with mmap requires /proc/#/mem and other scary things. Does anyone have pointers to *nice* interfaces for doing this? I don't care which OS, but I'd like to not have the implementation I'm requesting suck because I missed some gotchas that someone else already hit. Thanks, Paul