device filtering support

Segher Boessenkool segher at kernel.crashing.org
Tue Feb 7 19:36:24 EST 2012


>>> Right now I am more inclined to Segher's compromised
>>> proposal of give user the option of using filter to reduce
>>> unnecessary traffic (please refer to my previous reply).
>>
>> Yeah, I'm pretty sure it's possible to convert VID/PID to GUIDs, or
>> to determine the VID/PID without actually querying the device;
>> after all, the VID & PID are encoded in the device instance path.
>
> My thought is that GUID can be a filter for Windows.

That will make your code Windows-only.  If you also do not implement
the VID/PID filter, you cannot build any code written on another
platform; if you do implement it but stub it out, it will run but
just as insanely slow as it does now; and if you have the VID/PID
filter implemented in such a way that it does in fact reduce traffic
as it should, then what do you need a filter on GUID for?

I see no up side to this idea, sorry.


Segher




More information about the libusbx mailing list