On Wed, Jul 22, 2015 at 9:11 PM, Paulo Zanoni wrote:
> +#define igt_debugfs_read(filename, buf) \
> + __igt_debugfs_read((filename), (buf), sizeof(buf))
gtkdoc for this one would be nice too, along the lines of "Convenience
wrapper macro for __igt_debugfs_read ..." lgtm otherwise.
From: Paulo Zanoni
A helpful function for when you want to read a whole debugfs file to a
string and don't want to worry about opening and closing file
descriptors and asserting buffer sizes.
We've been using this already for kms_frontbuffer_tracking and
kms_fbcon_fbt, so the only test with new
2015-07-21 14:43 GMT-03:00 Daniel Vetter :
> On Tue, Jul 21, 2015 at 02:08:23PM -0300, Paulo Zanoni wrote:
>> From: Paulo Zanoni
>>
>> A helpful function for when you want to read a whole debugfs file to a
>> string and don't want to worry about opening and closing file
>> descriptors and assertin
On Tue, Jul 21, 2015 at 02:08:23PM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni
>
> A helpful function for when you want to read a whole debugfs file to a
> string and don't want to worry about opening and closing file
> descriptors and asserting buffer sizes.
>
> We've been using this alread
From: Paulo Zanoni
A helpful function for when you want to read a whole debugfs file to a
string and don't want to worry about opening and closing file
descriptors and asserting buffer sizes.
We've been using this already for kms_frontbuffer_tracking and
kms_fbcon_fbt, so the only test with new