
usbd
_
detach() © 2007, QNX Software Systems GmbH & Co. KG.
Detach from the USB device
Synopsis:
#include <sys/usbdi.h>
int usbd_detach( struct usbd_device *device );
Arguments:
device An opaque handle from usbd
_
attach().
Library:
libusbdi
Description:
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().
Returns:
EOK Success.
EBUSY I/O pending on the device.
Classification:
QNX Neutrino, QNX 4
Safety
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes
Caveats:
Don’t try to detach if there’s I/O pending on the device. If there is, usbd
_
detach() will
fail.
34 Chapter 4 • USB Library Reference September 10, 2007
Kommentare zu diesen Handbüchern