---
name: "usb_hub_find_child"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_hub_find_child"
---

# usb\_hub\_find\_child(9)

Get the pointer of child device attached to the port which is specified by port1.

## NAME

usb\_hub\_find\_child - Get the pointer of child device attached to the port which is specified by *port1*.

## SYNOPSIS

**struct usb\_device \* usb\_hub\_find\_child(struct usb\_device \*** *hdev***, int** *port1***);**

## ARGUMENTS

*hdev*

USB device belonging to the usb hub

*port1*

port num to indicate which port the child device is attached to.

## DESCRIPTION

USB drivers call this function to get hub's child device pointer.

## RETURN

**NULL** if input param is invalid and child's usb\_device pointer if non-NULL.

## COPYRIGHT
