Subject: Re: kern/34010: undefined reference to `uvm_mremap' in LKM
To: None <>
From: YAMAMOTO Takashi <>
List: netbsd-bugs
Date: 07/16/2006 15:52:26
> -file	uvm/uvm_mremap.c		compat_linux
> +file	uvm/uvm_mremap.c

i'd like to explain the intent of the current code
so that an lkm/configure guru can decide what would be a good fix.

- its primary purpose is a backend of linux mremap system call.

- however, what uvm_mremap.c implements is more than linux mremap.
  eg. it's intended to support inter-vm_map move.

- i made it compat_linux dependent because no one else uses it currently.

- otoh, i put it in uvm/ because its functionality can be useful for others.
  (and i was thinking about introducing netbsd-native version of
  the system call.  it makes significant performance difference for
  some applications, especially for ones written for linux. :-)