diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-24 20:52:44 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-24 21:35:25 +0000 |
commit | e08ed8a272fda96b8f7224985177f313c3b2ddf6 (patch) | |
tree | 5fdba2e2cade4db9f64582e6414c3372a5681180 /lib/igt_debugfs.h | |
parent | 58de785468782f29e6eb1d32d47b55b3d234dfcf (diff) |
lib/debugfs: Phase out igt_debugfs_fopen()
Wrapping fdopen() proved dangerous, the underlying fd is not refcounted,
and we must close it in the library or else we easily leak and exhaust
all fd. Since we can't provide igt_debugfs_fopen(), move the burden onto
the caller for those that require a stream FILE*.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_debugfs.h')
-rw-r--r-- | lib/igt_debugfs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index cdad562d..7b846a83 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -36,7 +36,6 @@ const char *igt_debugfs_mount(void); int igt_debugfs_dir(int device); int igt_debugfs_open(int fd, const char *filename, int mode); -FILE *igt_debugfs_fopen(int fd, const char *filename, const char *mode); void __igt_debugfs_read(int fd, const char *filename, char *buf, int buf_size); bool igt_debugfs_search(int fd, const char *filename, const char *substring); |