Subject: Re: kernel wired pages
To: YAMAMOTO Takashi <>
From: Chuck Silvers <>
List: tech-kern
Date: 01/16/2005 09:52:59
On Mon, Jan 17, 2005 at 02:40:36AM +0900, YAMAMOTO Takashi wrote:
> hi,
> > I don't think uvm_km_free() would actually need to be told which flags were
> > passed to uvm_km_kmemalloc(), it can probably figure everything out from
> > the contents of the map.
> i don't think keeping more info in the lower layer is a good idea
> because
> - it prevents map_entry merge between different allocation types and
>   thus increases search cost.

I wouldn't think we should merge pageable and non-pageable entries anyway.
or would there end up being more than 2 types?

> - it's redundant.  (callers of uvm_km_free should know the type of the entry.)

that's true.  but why make the caller tell you if it's easy to just
figure it out?  less typing, fewer chances for bugs.