OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Jacob Meuser (jakemsrcvs.openbsd.org)
Date: Sun Dec 05 2010 - 22:25:27 CST


CVSROOT: /cvs
Module name: src
Changes by: jakemsrcvs.openbsd.org 2010/12/05 21:25:27

Modified files:
        sys/dev/usb : usbdivar.h usbdi.h usbdi.c

Log message:
* add dying flag to struct usbd_device
* add usbd_deactivate(), which should be use to set the dying flag in
struct usbd_device
* add usbd_is_dying(), which can be used to check if either the device
or the associated bus dying flag has been set
* use usbd_is_dying() to check if the deivce or bus is dying before
issuing transfers or requests