[PATCH i-g-t v6 2/5] lib/igt_device_scan: Enable finding all matched IGT devices
Krzysztof Karas
krzysztof.karas at intel.com
Wed Apr 9 16:08:45 UTC 2025
Hi Soham,
> Add filter functions to find all the
I think this should be "function".
> available GPUs or few among them
> by driver name and card type or card number.
> Add driver field to igt_device_card structure
> for storing driver names.
I do not think this patch includes additions to structures.
[...]
> + if (!count)
> + return 0;
> +
> + *card = crd;
> + return count;
This part could be shuffled a bit to have only one return at
the end:
if (count)
*card = crd;
return count;
since if count was 0 anyway, we could just return that.
Best Regards,
Krzysztof
More information about the igt-dev
mailing list