usb_alloc_dev — usb device constructor (usbcore-internal)
|struct usb_device * parent,|
|struct usb_bus * bus,|
hub to which device is connected; null to allocate a root hub
bus used to access the device
one-based index of port; ignored for root hubs
Only hub drivers (including virtual root hub drivers for host controllers) should ever call this.
This call may not be used in a non-sleeping context.