Subject: Re: generic hook infrastructure
To: None <tech-kern@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 02/03/2006 20:18:17
On Thu, Feb 02, 2006 at 03:30:32PM +1100, Daniel Carosone wrote:
> 
> 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.

It is largely trivial to reverse the order of a singly linked list...
(although you might need to remember the order it is in)

	David

-- 
David Laight: david@l8s.co.uk