diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2011-02-10 17:26:41 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2011-02-10 17:26:41 +0000 |
commit | 1621b63b7d6f8b26cd58be84a18ca219b2ed981d (patch) | |
tree | ccba3ed33f31fc9a9271825dfb9db4429a97ea84 /lib/libmenu/m_hook.c | |
parent | 4e1d65ab1712f28cf6116f4e6371b7d5ab89016d (diff) |
now that usb_wait_task() is back, bring back recently reverted
changes:
* use usb_ref_{incr,decr,wait}() to avoid detaching the driver while a
process is still using the hardware.
* don't add timeout(9)s if the device is detached.
* add checks to see if the device has been detached before running
ioctls, timeouts, and tasks.
* use usb_wait_task() to wait for tasks to complete.
ok damien@
Diffstat (limited to 'lib/libmenu/m_hook.c')
0 files changed, 0 insertions, 0 deletions