C++ Linux中用户空间的usb_字符串

C++ Linux中用户空间的usb_字符串,c++,linux,usb,C++,Linux,Usb,我有一个USB设备,字符串描述符表中有以下字符串: Index 0: Standard Language 0x0409 (English) Index 1: Standard Manufacturer "xxx Corporation" Index 2: Standard Product

我有一个USB设备,字符串描述符表中有以下字符串:

Index 0:                Standard              Language            0x0409 (English)
Index 1:                Standard              Manufacturer        "xxx Corporation"
Index 2:                Standard              Product             "xxx Board HID Device"
Index 3:                Custom                Sector              "Bootloader" or "Application" (depending on current mode of operation).
我想读取索引3处的字符串。对于Windows,我们有一个API
HidD_GetIndexedString()
允许在任何索引处获取字符串。Linux中对应的API是什么?我看到驱动程序正在使用
usb\u string
来获取驱动程序中的字符串,但是我们在Linux中是否有类似的usb用户空间API。有