Query: usb_ifnum_to_if
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USB_IFNUM_TO_IF(9) USB Core APIs USB_IFNUM_TO_IF(9)NAMEusb_ifnum_to_if - get the interface object with a given interface numberSYNOPSISstruct usb_interface * usb_ifnum_to_if(const struct usb_device * dev, unsigned ifnum);ARGUMENTSdev the device whose current configuration is considered ifnum the desired interfaceDESCRIPTIONThis walks the device descriptor for the currently active configuration to find the interface object with the particular interface number. Note that configuration descriptors are not required to assign interface numbers sequentially, so that it would be incorrect to assume that the first interface in that descriptor corresponds to interface zero. This routine helps device drivers avoid such mistakes. However, you should make sure that you do the right thing with any alternate settings available for this interfaces. Don't call this function unless you are bound to one of the interfaces on this device or you have locked the device!RETURNA pointer to the interface that has ifnum as interface number, if found. NULL otherwise.COPYRIGHTKernel Hackers Manual 3.10 June 2014 USB_IFNUM_TO_IF(9)
Related Man Pages |
---|
usb_interface_id(9) - suse |
struct_usb_interface(9) - centos |
shmif(4) - netbsd |
struct_usb_interface(9) - suse |
usb_queue_reset_device(9) - suse |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
DB2 convert digits to binary format |
Tar Command |
CentOS7 restoring file capabilities |
[TIP] Processing YAML files with yq |