On Sun, Dec 19, 2010 at 05:02:54AM +0200, Paul Irofti wrote:
yes, it's used to set the driver's dying flag. those are the most common
places a driver would be marked as dying. maybe also in an interrupt
handler.
hmm. perhaps usbd_deactivate() is not the best name.
currently it is just a wrapper for setting the dying flag in the driver's
usbd_device. maybe it will do other things, but probably not. the pupose
of setting the dying flag in the usbd_device is so that this flag can be
checked in generic stack functions, because the almost always have access
to the usbd_device. if there were just the dying flag in the softc, that
isn't available outside the driver.
I don't get what you're saying here.
--
jakemsr@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org