usb_create_hcd

Name

usb_create_hcd --  create and initialize an HCD structure

Synopsis

struct usb_hcd * usb_create_hcd (const struct hc_driver * driver);

Arguments

driver

HC driver that will use this 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.

If memory is unavailable, returns NULL.