Subject: Re: UVM patch: sys_swapctl split
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 03/17/2002 17:25:47
hi,

looks good... just take the UVMHIST stuff out of uvm_swap_stats()
(since it doesn't actually convey any information there)
and it's fine.

-Chuck


On Sun, Mar 17, 2002 at 11:53:42PM +0100, Emmanuel Dreyfus wrote:
> I just tried to implement this, but it's not that easy, since there are actually
> two copyouts that should be handled differently. The second copyout causes the
> problem:
>                                error = copyout(sdp->swd_path,
>                                    &sep->se_path, sdp->swd_pathlen);
> 
> I end up with the alternative of passing two copyout-like functions to
> uvm_swap_stats, which is getting ugly, or to limit the malloc size. It's esay to
> do it, since we know that we won't need more than the actual number of swap
> devices.
> 
> Here is the new patch, is it okay for you?
...