From owner-freebsd-hackers Fri Mar 20 08:42:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA23586 for freebsd-hackers-outgoing; Fri, 20 Mar 1998 08:42:10 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA23523 for ; Fri, 20 Mar 1998 08:41:59 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id IAA29607; Fri, 20 Mar 1998 08:38:31 -0800 (PST) Message-Id: <199803201638.IAA29607@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Alfred Perlstein" cc: hackers@FreeBSD.ORG Subject: Re: mremap? In-reply-to: Your message of "Fri, 20 Mar 1998 03:03:38 EST." <003201bd53d6$b08ed7a0$0600a8c0@win95.local.sunyit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Mar 1998 08:38:29 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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