Subject: Re: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 02/06/2008 21:46:55
On Wed, Feb 06, 2008 at 03:36:59PM -0600, David Young wrote:
> 
> I can think of two cases where I would like to walk the device list
> in order to remove devices: at shutdown, and when detaching a device's
> children.  Perhaps a reader/writer lock is appropriate?  Perhaps walk
> the list backwards in the "writer" case?  Just thinking out loud.

Or 'prime' the iterator for the next item, so the iterated code
can delete itself, but not the next item.

	David

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