Subject: Re: generic hook infrastructure
To: None <tech-kern@netbsd.org>
From: Daniel Carosone <dan@geek.com.au>
List: tech-kern
Date: 02/02/2006 15:30:32
--ny1v8xcV31BR+sbv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Feb 02, 2006 at 04:26:52AM +0100, joerg@britannica.bec.de wrote:
> 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.

Shutdown hooks.  You want to unmount filesystems and unconfigure
vnd/cgd/etc devices and all the other similar things in reverse order
that they were configured.

--
Dan.

--ny1v8xcV31BR+sbv
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFD4YroEAVxvV4N66cRAiSLAJ47mie2ymyb9exePP6M8pXoqjDBCgCgyc7X
SrxpjTLLcepKqb+QBfWT/a4=
=4tM9
-----END PGP SIGNATURE-----

--ny1v8xcV31BR+sbv--