[igt-dev] [PATCH i-g-t] lib/drmtest: Move open device to separate function

Chris Wilson chris at chris-wilson.co.uk
Sat Sep 1 09:03:56 UTC 2018


Quoting Katarzyna Dec (2018-08-31 14:57:16)
> While working on IGT code and during reviewes I've noticed that
> it could be nice to have function that is opening particular device.
> Let's move out conditions for opening device and rename __open_device
> to __search_and_open() function.
> 
> v2: Refactored open_device even more by getting device name once and
> returning fd for it. (Chris)
> v3: Added name_size to __get_drm_device_name, removed unused is_X_device.
> v4: Fixed cases with failing virtio_gpu
> v5: Rebase, indent fixes
> 
> Signed-off-by: Katarzyna Dec <katarzyna.dec at intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>

Tidied, reviewed and pushed.
-Chris


More information about the igt-dev mailing list