USBD_REGISTER_SINGLE_HC

Purpose

Register single USB Host Controller with the USB system driver.

Syntax

int ioctl (file, USBD_REGISTER_SINGLE_HC, arg)

Parameter

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

Description

If successful, this ioctl registers the specified host controller with the USBD and allows clients to talk to devices connected to the controller. There is no specific IOCTL 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 asks the USBD to unregister the host controller through a call vector (See the usbdReqHCunregister).

Execution Environment

This function can be called from the user process environment only.

Return Values

Value Description
0 Indicates successful completion.
-1 Failure (check errno for specific failure)