Subject: thoughts on a dohooks(9) API?
To: None <tech-kern@NetBSD.org>
From: Jeff Rizzo <riz@NetBSD.org>
List: tech-kern
Date: 01/04/2006 08:26:20
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig427AF870976A7D47AE650433
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I'm helping someone to port carp(4) from OpenBSD
(comments/flames/whatever on the desirability of THAT in another thread,
please :), and we've come across some instances where we need to add
hooks to certain events (interface up, address change, etc).  OpenBSD
has a dohooks(9) API that is used to implement various hook-needing
functions (their doshutdownhooks() is implemented on top of it, for
example).  I've done some poking around in kern_subr.c, and it looks
like we actually have almost all of the blocks that their API is built
on top of already, so I'm wondering if people think this would be a good
thing to import, or not, before I spend any time on it.  Is it
worthwhile to get a little API convergence, here?  I don't necessarily
think we should copy it exactly, but think a more general "hooks"
mechanism is warranted...

Thoughts?

+j



--------------enig427AF870976A7D47AE650433
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBQ7v3O7OuUtxCgar5AQMJfwP9HUpbaxJ15cp712pXVIPhSt+9w4ZnUAy6
WFMgxzfOARKywCO7B+is/R8z8XEM9Os0CQbAmA0XN9HpK9MrgtMOvexcnpiOMVRO
9YOebeWIMsZRs7F10x3MuG7BdiYOvWP3XLJ9bCFdgf4/Z2NfRtSntnjzfwA08fSO
dzgKTjYnsOc=
=6ZVV
-----END PGP SIGNATURE-----

--------------enig427AF870976A7D47AE650433--