Subject: Re: Page Loan API change proposal
To: Jaromr <jdolecek@netbsd.org>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 09/21/2001 23:59:27
hi,

it would be nice if you waited a little longer before just checking
in changes like this.  I was planning on looking at this over the weekend.
I guess in the future I'll have respond to each such message immediately
asking you to wait until I have a chance to look at it.

-Chuck


On Thu, Sep 20, 2001 at 10:02:53PM +0200, Jarom=7Fr Dolecek wrote:
> Hi,
> I'd like to adjust the API a bit, to allow to loan memory pages
> to kernel as unwired, and to get rid of uvm_unloan*() variants.
> I'd like to have the former flexibility since e.g. NEW_PIPE
> is using TOPAGE loans and doesn't need the pages wired, and
> using TOANON loans there would be unnecessary overhead (though
> negliable, but still overhead).
>=20
> I'd like to:
> 1. add UVM_LOAN_WIRED flag - if set, the UVM_LOAN_TOPAGE loan
>    would wire the loaned pages (or unwire when unloaning)
> 1. add uvm_unloan(void **result, int npages, int flags), to be used
>    instead uvm_unloanpage() & uvm_unloananon(), 'flags' have
>    same meaning as for uvm_loan()
> 	=20
> Opinions? I'm appending patch.
>=20
> Jaromir