Line 3:
Line 3:
==ioctl() interface==
==ioctl() interface==
===0x11 - UhsQueryInterfaces()===
===0x11 - UhsQueryInterfaces()===
−
This function appears to be used to determine which USB device interfaces are plugged in and available. IOS_Ioctl() with this code returns the number of USB devices plugged in.
+
This function is used to determine which USB device interfaces are plugged in and available. Its input is a 0x10-byte buffer containing a series of parameters to filter the interfaces by, such as class, subclass, vendor ID, and product ID. The output is an array of 0x16c-byte interface descriptors, one for each interface being read. IOS_Ioctl() with this function returns the number of attached USB interfaces permitted by the filter.