]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r200653
authorthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 31 Dec 2009 00:10:26 +0000 (00:10 +0000)
committerthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 31 Dec 2009 00:10:26 +0000 (00:10 +0000)
commit6b459670b7774bcbcea627edb179da69bc01658e
treee51e261a305c938d833b7948c61a32fc52e6fa0a
parentdf48b91f6b5318b1468e42de5be84071eb78a918
MFC r200653

 Use the EVENTHANDLER system to hook into the usb device configuration and
 perform a function such as ejecting a 3G autoinstaller disk. The eventhandler
 system properly tracks threads and is safe to unload, remove the
 setting/clearing of a function pointer in the kernel by u3g(4) which included a
 tsleep for safety.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/serial/u3g.c
sys/dev/usb/usb_device.c
sys/dev/usb/usb_dynamic.c
sys/dev/usb/usb_dynamic.h
sys/dev/usb/usbdi.h