[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proxy memory objects patch
From: |
Marcus Brinkmann |
Subject: |
Re: proxy memory objects patch |
Date: |
Wed, 4 Dec 2002 00:07:23 +0100 |
User-agent: |
Mutt/1.4i |
On Tue, Dec 03, 2002 at 11:29:46PM +0100, Marcus Brinkmann wrote:
> > In general I don't think the kernel should do a lot of work to make the
> > interface easier for the caller, but the other way around. So special
> > cases for the last element and so forth are questionable.
>
> I think it is important to make the last element open ended, because of the
> possibility of resizing files. If a file is grown, I think you should be
> able to map the grown area from the proxy object you already got without
> calling io_map again. This keeps a read only proxy object for a file in
> sync with the writable object if it changes size. But maybe I am thinking
> wrong about resizing of memory objects, I never really looked into the
> extensions you did to make it possible.
Maybe this can be done by using (vm_size_t) -1 (ie, 0xffffffff) as
length/end argument, rather than by omitting it? This seems to me to mean
the right thing in a natural way.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' GNU http://www.gnu.org marcus@gnu.org
Marcus Brinkmann The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/
Re: proxy memory objects patch, Marcus Brinkmann, 2002/12/03