Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



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@localhost



Home | Main Index | Thread Index | Old Index