[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

Souza, Jose jose.souza at intel.com
Tue Jan 8 13:52:35 UTC 2019


On Mon, 2019-01-07 at 20:38 +0000, Chris Wilson wrote:
> 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);

In some places we read the this debugfs several times per second, so
not a good a idea to do dynamic allocation.

> -Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20190108/b8ab053a/attachment.sig>


More information about the igt-dev mailing list