diff options
author | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2018-09-05 14:15:55 -0700 |
---|---|---|
committer | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2018-09-05 18:12:38 -0700 |
commit | 219b578bca04c93004e3f3942ce3079813f72724 (patch) | |
tree | 7249eeee59f10bb325449bc71de468c43e80fd9a /lib/igt_debugfs.h | |
parent | 86686c6e2f7c6f0944bced11550e06d20bc6957f (diff) |
lib/debugfs: Function to read debugfs with the directory already open
tests/kms_frontbuffer_tracking and tests/kms_psr read debugfs nodes
several times after opening the directory once. There is already an
implementation of this in the kms_frontbuffer_tracking, moving that
functionality to the library will allow us to share the code with kms_psr
and kms_fbcon_fbt
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'lib/igt_debugfs.h')
-rw-r--r-- | lib/igt_debugfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index db634a82..ff8612dc 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -37,7 +37,8 @@ char *igt_debugfs_path(int device, char *path, int pathlen); int igt_debugfs_dir(int device); int igt_debugfs_open(int fd, const char *filename, int mode); -void __igt_debugfs_read(int fd, const char *filename, char *buf, int buf_size); +void __igt_debugfs_read(int fd, const char *filename, char *buf, int size); +int igt_debugfs_simple_read(int dir, const char *filename, char *buf, int size); bool igt_debugfs_search(int fd, const char *filename, const char *substring); /** |