Subject: Re: generic hook infrastructure
To: None <tech-kern@netbsd.org>
From: Brett Lymn <blymn@baesystems.com.au>
List: tech-kern
Date: 02/01/2006 22:30:29
On Tue, Jan 31, 2006 at 02:23:32PM +0100, joerg@britannica.bec.de wrote:
> 
> Can you take a look at FreeBSD's sys/eventhandler.h? If it fits what you
> need, we don't have to invent Yet Another Interface (TM).
> 

Hmmm that does look like it would do most of the job, only two things
I can see that it does not do:

1) deregister a hook function after it has run, some of our hooks to
this to prevent them being run again.

2) no reverse traversal.

I don't regard either as being a show stopper, the interface could
grow a couple more definitions to cover these points.

Would there be any objections to importing the eventhandler code from
FreeBSD?

-- 
Brett Lymn