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