1USB_CREATE_SHARED_HC(9)      Host Controller APIs      USB_CREATE_SHARED_HC(9)
2
3
4

NAME

6       usb_create_shared_hcd - create and initialize an HCD structure
7

SYNOPSIS

9       struct usb_hcd * usb_create_shared_hcd(const struct hc_driver * driver,
10                                              struct device * dev,
11                                              const char * bus_name,
12                                              struct usb_hcd * primary_hcd);
13

ARGUMENTS

15       driver
16           HC driver that will use this hcd
17
18       dev
19           device for this HC, stored in hcd->self.controller
20
21       bus_name
22           value to store in hcd->self.bus_name
23
24       primary_hcd
25           a pointer to the usb_hcd structure that is sharing the PCI device.
26           Only allocate certain resources for the primary HCD
27

CONTEXT

29       !in_interrupt
30

DESCRIPTION

32       Allocate a struct usb_hcd, with extra space at the end for the HC
33       driver's private data. Initialize the generic members of the hcd
34       structure.
35

RETURN

37       On success, a pointer to the created and initialized HCD structure. On
38       failure (e.g. if memory is unavailable), NULL.
39
41Kernel Hackers Manual 3.10         June 2019           USB_CREATE_SHARED_HC(9)
Impressum