Scroll to navigation

USB_FIND_COMMON_ENDP(9) USB Core APIs USB_FIND_COMMON_ENDP(9)

NAME

usb_find_common_endpoints - - look up common endpoint descriptors

SYNOPSIS

int usb_find_common_endpoints(struct usb_host_interface * alt, struct usb_endpoint_descriptor ** bulk_in, struct usb_endpoint_descriptor ** bulk_out, struct usb_endpoint_descriptor ** int_in, struct usb_endpoint_descriptor ** int_out);

ARGUMENTS

alt

alternate setting to search

bulk_in

pointer to descriptor pointer, or NULL

bulk_out

pointer to descriptor pointer, or NULL

int_in

pointer to descriptor pointer, or NULL

int_out

pointer to descriptor pointer, or NULL

DESCRIPTION

Search the alternate setting's endpoint descriptors for the first bulk-in, bulk-out, interrupt-in and interrupt-out endpoints and return them in the provided pointers (unless they are NULL).

If a requested endpoint is not found, the corresponding pointer is set to NULL.

RETURN

Zero if all requested descriptors were found, or -ENXIO otherwise.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10