'\" t .\" Title: usb_hub_find_child .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: USB Core APIs .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_HUB_FIND_CHILD" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "USB Core 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_hub_find_child \- Get the pointer of child device attached to the port which is specified by \fIport1\fR\&. .SH "SYNOPSIS" .HP \w'struct\ usb_device\ *\ usb_hub_find_child('u .BI "struct usb_device * usb_hub_find_child(struct\ usb_device\ *\ " "hdev" ", int\ " "port1" ");" .SH "ARGUMENTS" .PP \fIhdev\fR .RS 4 USB device belonging to the usb hub .RE .PP \fIport1\fR .RS 4 port num to indicate which port the child device is attached to\&. .RE .SH "DESCRIPTION" .PP USB drivers call this function to get hub\*(Aqs child device pointer\&. .SH "RETURN" .PP \fBNULL\fR if input param is invalid and child\*(Aqs usb_device pointer if non\-NULL\&. .SH "COPYRIGHT" .br