On Wed, Sep 22, 2010 at 11:44:16PM -0600, Jacob Meuser wrote: > CVSROOT: /cvs > Module name: src > Changes by: [email protected] 2010/09/22 23:44:16 > > Modified files: > sys/dev/usb : uhub.c usb.c usbdi.c usbdivar.h > > Log message: > add a 'dying' flag to struct usbd_bus. use this to signify the bus > is dying, instead of setting a flag in struct usb_softc. as > usbd_device_handle has a pointer to the usbd_bus it's attached to, > usb devices, and functions they run or functions run on their behalf, > can now easily check if their bus is dying. use this to stop > usbd_do_request* from running and the usb task thread from adding ^^^^^^^^^^^^^^^^^^^ not just the task thread but any process. sorry 'bout that.
> usbd_do_request* from running and device drivers from adding > new tasks when a device's bus is dying. -- [email protected] SDF Public Access UNIX System - http://sdf.lonestar.org
