The Linux-USB Host Side API | ||
---|---|---|
<<< Previous | Next >>> |
the interface containing the altsetting in question
the desired alternate setting number
This searches the altsetting array of the specified interface for an entry with the correct bAlternateSetting value and returns a pointer to that entry, or null.
Note that altsettings need not be stored sequentially by number, so it would be incorrect to assume that the first altsetting entry in the array corresponds to altsetting zero. This routine helps device drivers avoid such mistakes.
Don't call this function unless you are bound to the intf interface or you own the device's ->serialize semaphore!
This searches the altsetting array of the specified interface for an entry with the correct bAlternateSetting value and returns a pointer to that entry, or null.
Note that altsettings need not be stored sequentially by number, so it would be incorrect to assume that the first altsetting entry in the array corresponds to altsetting zero. This routine helps device drivers avoid such mistakes.
Don't call this function unless you are bound to the intf interface or you own the device's ->serialize semaphore!
<<< Previous | Home | Next >>> |
usb_ifnum_to_if | Up | usb_epnum_to_ep_desc |