usbd_disconnect
![]() |
![]() |
![]() |
![]() |
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:
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
usbd_attach(), usbd_connect(), usbd_detach()
![]() |
![]() |
![]() |
![]() |
![[Previous]](prev.gif)
![[Contents]](contents.gif)
![[Index]](keyword_index.gif)
![[Next]](next.gif)