1USB_FIND_COMMON_ENDP(9) USB Core APIs USB_FIND_COMMON_ENDP(9)
2
3
4
6 usb_find_common_endpoints - - look up common endpoint descriptors
7
9 int usb_find_common_endpoints(struct usb_host_interface * alt,
10 struct usb_endpoint_descriptor ** bulk_in,
11 struct usb_endpoint_descriptor ** bulk_out,
12 struct usb_endpoint_descriptor ** int_in,
13 struct usb_endpoint_descriptor ** int_out);
14
16 alt
17 alternate setting to search
18
19 bulk_in
20 pointer to descriptor pointer, or NULL
21
22 bulk_out
23 pointer to descriptor pointer, or NULL
24
25 int_in
26 pointer to descriptor pointer, or NULL
27
28 int_out
29 pointer to descriptor pointer, or NULL
30
32 Search the alternate setting's endpoint descriptors for the first
33 bulk-in, bulk-out, interrupt-in and interrupt-out endpoints and return
34 them in the provided pointers (unless they are NULL).
35
36 If a requested endpoint is not found, the corresponding pointer is set
37 to NULL.
38
40 Zero if all requested descriptors were found, or -ENXIO otherwise.
41
43Kernel Hackers Manual 3.10 June 2019 USB_FIND_COMMON_ENDP(9)