Subject: Re: Alternative approach for interface events
To: None <tech-net@NetBSD.org>
From: Peter Postma <peter@pointless.nl>
List: tech-net
Date: 09/20/2004 22:21:24
On Mon, Sep 20, 2004 at 09:24:59AM +0200, Martin Husemann wrote:
> On Sun, Sep 19, 2004 at 11:29:30PM +0200, Peter Postma wrote:
> > FreeBSD's eventhandler seems too much code to me for handling interface
> > changes. But if we want a general event handling mechanism then it might
> > be useful.
> 
> Agreed. But I think we need a general event handling mechanism.
> (And then use that for the sysmon events too)
> 

Ok, here's a port of FreeBSD's eventhandler (and cleaned up).

http://nedbsd.nl/~ppostma/freebsd-eventhandler.diff

I think we can also use this event system to replace hook functions
in kern_subr.c.

-- 
Peter Postma