[igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it

Chris Wilson chris at chris-wilson.co.uk
Mon Jan 7 20:38:22 UTC 2019


Quoting José Roberto de Souza (2019-01-07 19:10:49)
> So every function reading i915_edp_psr_status can allocate a buffer
> long enough.

Or just use 

char *buf = igt_sysfs_get(debugfs_fd, "i915_edp_psr_status");
...
free(buf);
-Chris


More information about the igt-dev mailing list