USBD_REGISTER_SINGLE_HC

Purpose

Registers single Universal Serial Bus (USB) host controller with the USB system driver (USBD).

Syntax

int ioctl (file, USBD_REGISTER_SINGLE_HC, arg)

Parameters

Item Description
file File descriptor that is obtained when the USBD special file was opened.
arg Pointer to the integer that contains 32-bit devno structure of the USB host controller.

Description

This ioctl operation registers the specified host controller with the USBD and allows clients to communicate to the devices that are connected to the controller. There is no specific ioctl operation to unregister a hardware controller. It stays registered until either the USBD is unconfigured or the host controller is unconfigured. In the latter case, the host controller driver requests the USBD to unregister the host controller through the usbdReqHCunregister call vector.

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.