tech-kern archive

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

Re: compat_netbsd32 swapctl



On Thu, Jan 30, 2014 at 03:43:31PM +1100, matthew green wrote:
> ... which is basically what dsl was suggesting, but with
> more useful details.

Yes, David is right, it is all already there: just use netbsd32_dev_t
for the definition of netbsd32_swapent. This uses NETBSD32_INT64_ALIGN,
which on most archs is empty, but on i386 is __attribute__((__aligned__(4))).

Then you allocate a temporary array of struct swapent, let uvm deal with
that, and copy back the results to netbsd_swapent.

Martin


Home | Main Index | Thread Index | Old Index