USBD_ENUMERATE_ALL
Purpose
Gets a list of all the Universal Serial Bus (USB) logical devices that are connected to a host controller.
Syntax
int ioctl (file, USBD_ENUMERATE_ALL, arg)
Parameters
| Item | Description |
|---|---|
| file | File descriptor that is obtained when the USB system driver (USBD) special file was opened. |
| arg | Address of the USBENUM structure
that is aligned with a 4-byte boundary. |
Description
This ioctl operation
behaves in the same manner as the USBD_ENUMERATE_DEVICE ioctl operation
except that it includes all hubs other than the root hub.
Execution environment
This function can be called from the user process environment only.
Return values
| Value | Description |
|---|---|
| 0 | Success. |
| -1 | Failure. Check the errno value for specific failure causes. |