On Mon, Apr 16, 2012 at 07:49:28PM +0100, Iain Hibbert wrote: > I'm kind of with David Young, surely this is what the softc is for.. so > that the parent can keep track of which resources it has allocated (and by > inference, not reallocate them to another device)
I agree with this too; numerous drivers/frameworks use the above scheme. If you add this function, please refactor these to follow this new (superfluous) idiom. - Jukka.