Subject: Re: kevent(2) under COMPAT_NETBSD32
To: Christos Zoulas <christos@astron.com>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 07/13/2005 21:01:19
--wlFCko3yyTbBmKK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 13, 2005 at 06:10:21PM +0300, Christos Zoulas wrote:
> 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?
> >
>=20
> 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.

That's what I do for the fetch_timeout one.  However, it is not possible
for the two others, as they fetch/store several elements inside an array
in user space.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--wlFCko3yyTbBmKK8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQtVk/tgoQloHrPnoAQIszgf/QJS+2qFhcswE156zV87jKitdZ4YI/5xp
Ygg/Z2lLLxGhr3xO4AL5EfX0B4JJWDy/S9rHUq1r/UdOQ8zQ22HWqIRLjNCDdKuD
QXoPfBwuifdnk3XS2iMmS97QAuTkTCpSodlDny9RMIJUGHhHO+pF6FOG0K1zk6Y9
O3jcGvd3zY3azPpjbNT57Ev33QJNehQy0VYVBSdE2rSpp5l5ysqO8jorLR1cGSub
2QG0a8Z7wFfNmV2DqOeUWLw4zONuGhjtnR42IeOind/C3AZn8NXS7upBrMHGx2t/
4piprd5WeDi8g/MQ2dWep2n26vkV7Eg8gV9aGPcp4UMSHqE5fwB9fQ==
=liyX
-----END PGP SIGNATURE-----

--wlFCko3yyTbBmKK8--