'\" t .\" Title: usb_create_hcd .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host Controller APIs .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_CREATE_HCD" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host Controller APIs" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_create_hcd \- create and initialize an HCD structure .SH "SYNOPSIS" .HP \w'struct\ usb_hcd\ *\ usb_create_hcd('u .BI "struct usb_hcd * usb_create_hcd(const\ struct\ hc_driver\ *\ " "driver" ", struct\ device\ *\ " "dev" ", const\ char\ *\ " "bus_name" ");" .SH "ARGUMENTS" .PP \fIdriver\fR .RS 4 HC driver that will use this hcd .RE .PP \fIdev\fR .RS 4 device for this HC, stored in hcd\->self\&.controller .RE .PP \fIbus_name\fR .RS 4 value to store in hcd\->self\&.bus_name .RE .SH "CONTEXT" .PP !\fBin_interrupt\fR .SH "DESCRIPTION" .PP Allocate a struct usb_hcd, with extra space at the end for the HC driver\*(Aqs private data\&. Initialize the generic members of the hcd structure\&. .SH "RETURN" .PP On success, a pointer to the created and initialized HCD structure\&. On failure (e\&.g\&. if memory is unavailable), \fBNULL\fR\&. .SH "COPYRIGHT" .br