Subject: Re: generic hook infrastructure
To: None <tech-kern@netbsd.org>
From: None <joerg@britannica.bec.de>
List: tech-kern
Date: 02/02/2006 04:26:52
On Wed, Feb 01, 2006 at 10:30:29PM +1030, Brett Lymn wrote:
> 
> 1) deregister a hook function after it has run, some of our hooks to
> this to prevent them being run again.

You mean an one-shot modus? I'd say make the hook-removal O(1) with
small O(1) and it can be implemented completely via a wrapper function.

> 2) no reverse traversal.

Can you give an example of why this is needed? I can think of situations
where you want to add a new hook at the end or the beginning of the
current list, but no need to traverse the list backwards.

Joerg