usb_create_shared_hcd(9)

usb_create_shared_hcd9

Create and initialize an hcd structure

Usage

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

HC driver that will use this hcd

dev

device for this HC, stored in hcd->self.controller

bus_name

value to store in hcd->self.bus_name

primary_hcd

a pointer to the usb_hcd structure that is sharing the PCI device. Only allocate certain resources for the primary HCD

Context

!in_interrupt

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.