Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 1998 08:38:29 -0800
From:      Mike Smith <mike@smith.net.au>
To:        "Alfred Perlstein" <perlsta@cs.sunyit.edu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: mremap? 
Message-ID:  <199803201638.IAA29607@dingo.cdrom.com>
In-Reply-To: Your message of "Fri, 20 Mar 1998 03:03:38 EST." <003201bd53d6$b08ed7a0$0600a8c0@win95.local.sunyit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> ok, i'm not promising anything here, but if i implemented mremap(), would
> there be any interest in allowing it into -current?
> 
> mremap just allows for moving and resizing mmap'd segments.

You're more than welcome to give it a try.  I had a look at the way 
Linux does it, and frankly the layering violations were pretty shocking 
(although there appears to be a great deal less sophistication in their 
 VM system).

I couldn't see how to provide similar functionality with FreeBSD, but 
if you're willing to get a little close to the way that memory mapping 
works (check with David Greenman if you need advice here) you should be 
able to pull it off.

> btw, i'm planning on implementing it like the linux mremap(), although there
> is some talk in the linux man page for it about a BSD version that was never
> done... if anyone would rather i try to do that i can look into it if
> someone can get me a man page to the BSD proposed version.

If BSD/OS or NetBSD  has mremap(), we would probably want to look like
theirs and support the Linux model via ABI emulation.  Otherwise, I 
can't see any reason not to simply be slavishly compatible.  8)

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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