Subject: Re: kevent(2) under COMPAT_NETBSD32
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 07/13/2005 18:10:21
In article <20050713134702.GC27225@drowsy.duskware.de>,
Martin Husemann  <martin@duskware.de> wrote:
>On Wed, Jul 13, 2005 at 03:42:05PM +0200, Quentin Garnier wrote:
>> The only other sane way of having a netbsd32 version of kevent(2) is
>> through rewriting everything (sys_kevent and kqueue_scan).  I don't
>> like that solution because with time the native version will change
>> and the netbsd32 will start being different.
>
>Can we replace function calls be preproccessor magic, move sys_kevent and
>kqueue_scan into a template file - trading code size for runtime?
>

Or we can save at least one function call by using copyin directly
in the regular kernel path. This changes the function invocation to
a function pointer invocation, but does not add an extra function call.

christos