Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
usbd_disconnect

usbd_disconnect

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

usbd_disconnect()

Disconnect a client driver from the USB stack

Synopsis:

#include <sys/usbdi.h>

int usbd_disconnect( struct usbd_connection *connection );

Arguments:

connection
A handle for the USB stack, obtained by calling usbd_connect().

Library:

libusbdi

Description:

You use the usbd_disconnect() to disconnect a client driver that had been previously connected to the USB stack via the usbd_connect() function.

The usbd_disconnect() function automatically closes any pipes previously opened via usbd_attach().

Returns:

EOK
Success.

Classification:

QNX Neutrino, QNX 4

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

usbd_attach(), usbd_connect(), usbd_detach()