On Sun, Aug 15, 2010 at 10:59:24PM -0700, Matt Thomas wrote: > > > > Anyway, that's the gist of the idea. I've attached the untested (and > > uncompiled) code for the details. Comments? > > Seems overly complex. Why shouldn't a driver be able to defer its > detachment just like we can defer in attach? > > void device_detach_defer(device_t); > > When the driver has finally cleaned everything up it can do > > void device_detach_complete(device_t); > > to force the softc/device_t to be freed.
Maybe I don't understand, but this seems to move the problem somewhere else. When do we call device_detach_complete(), if not after every thread is out of the softc? And how do we know that? Dave -- David Young OJC Technologies [email protected] Urbana, IL * (217) 278-3933
