USB_CREATE_SHARED_HC(9) | Host Controller APIs | USB_CREATE_SHARED_HC(9) |
NAME¶
usb_create_shared_hcd - create and initialize an HCD structure
SYNOPSIS¶
struct usb_hcd * usb_create_shared_hcd(const struct hc_driver * driver, struct device * dev, const char * bus_name, struct usb_hcd * primary_hcd);
ARGUMENTS¶
driver
dev
bus_name
primary_hcd
CONTEXT¶
!in_interrupt
DESCRIPTION¶
Allocate a struct usb_hcd, with extra space at the end for the HC driver's private data. Initialize the generic members of the hcd structure.
RETURN¶
On success, a pointer to the created and initialized HCD structure. On failure (e.g. if memory is unavailable), NULL.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |