1USB_HUB_FIND_CHILD(9) USB Core APIs USB_HUB_FIND_CHILD(9)
2
3
4
6 usb_hub_find_child - Get the pointer of child device attached to the
7 port which is specified by port1.
8
10 struct usb_device * usb_hub_find_child(struct usb_device * hdev,
11 int port1);
12
14 hdev
15 USB device belonging to the usb hub
16
17 port1
18 port num to indicate which port the child device is attached to.
19
21 USB drivers call this function to get hub's child device pointer.
22
24 NULL if input param is invalid and child's usb_device pointer if
25 non-NULL.
26
28Kernel Hackers Manual 3.10 June 2019 USB_HUB_FIND_CHILD(9)