USB_EPNUM_TO_EP_DESC

Section: (9)
Updated: 07 August 2003
Index Return to Main Contents

 

NAME

usb_epnum_to_ep_desc - get the endpoint object with a given endpoint number  

SYNOPSIS

struct usb_endpoint_descriptor * usb_epnum_to_ep_desc (struct usb_device * dev, unsigned epnum);  

ARGUMENTS

dev
the device whose current configuration is considered
epnum
the desired endpoint
 

DESCRIPTION

This walks the device descriptor for the currently active configuration, and returns a pointer to the endpoint with that particular endpoint number, or null.

Note that interface descriptors are not required to assign endpont numbers sequentially, so that it would be incorrect to assume that the first endpoint in that descriptor corresponds to interface zero. This routine helps device drivers avoid such mistakes.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 09:53:53 GMT, April 09, 2004