bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: providing memory objects to users


From: Marcus Brinkmann
Subject: Re: providing memory objects to users
Date: Wed, 12 Jun 2002 16:17:24 +0200
User-agent: Mutt/1.3.28i

On Tue, Jun 11, 2002 at 08:21:59PM -0700, Thomas Bushnell, BSG wrote:
> Using libpager is a reasonable thing to do, in my opinion.
> 
> But you must use it properly! :)

Ok ;)  I do this in my current version, and it seems to work fine.  I will
check in the code right now, but I have one more question.  When using
libpager, I must provide my own backing store, right?  At any time, it can
happen that pager_write_page is called with my pages, and then they are
removed.

So I need to provide my own simple backing store for the pages on the one
hand to save the pages when they are "swapped out", and my own server side
mapping on the other hand to access the pages.  I will use a malloc'ed
area as backing store, and make all server side accesses to the buffer
through the mapping.  Then pager_read_page and pager_write_page only need
to read from and write to the malloc'ed area.

Seems a bit redundant to me :) but it should work.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]