Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_detach.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_detach.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_detach.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_detach.html on line 8
Detach from the USB device
#include <sys/usbdi.h>
int usbd_detach( struct usbd_device *device );
- device
- An opaque handle from usbd_attach().
libusbdi
You use the usbd_detach() function to disconnect
from a USB device that you previously had attached to via
usbd_attach().
The usbd_detach() function automatically closes
any pipes previously opened via usbd_open_pipe().
- EOK
- Success.
- EBUSY
- I/O pending on the device.
QNX Neutrino, QNX 4
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
Don't try to detach if there's I/O pending on the device. If there is, usbd_detach() will fail.
usbd_attach(),
usbd_close_pipe(),
usbd_connect(),
usbd_disconnect(),
usbd_open_pipe()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_detach.html on line 125
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_detach.html on line 125