Clark Williams | afe61f6 | 2009-11-08 09:01:37 -0600 | [diff] [blame] | 1 | #ifndef __DEBUGFS_H__ |
| 2 | #define __DEBUGFS_H__ |
| 3 | |
Arnaldo Carvalho de Melo | c168fbf | 2011-11-16 12:55:59 -0200 | [diff] [blame] | 4 | const char *debugfs_find_mountpoint(void); |
| 5 | int debugfs_valid_mountpoint(const char *debugfs); |
| 6 | int debugfs_valid_entry(const char *path); |
| 7 | char *debugfs_mount(const char *mountpoint); |
| 8 | int debugfs_umount(void); |
Arnaldo Carvalho de Melo | ebf294b | 2011-11-16 14:03:07 -0200 | [diff] [blame] | 9 | void debugfs_set_path(const char *mountpoint); |
Arnaldo Carvalho de Melo | c168fbf | 2011-11-16 12:55:59 -0200 | [diff] [blame] | 10 | int debugfs_write(const char *entry, const char *value); |
| 11 | int debugfs_read(const char *entry, char *buffer, size_t size); |
| 12 | void debugfs_force_cleanup(void); |
| 13 | int debugfs_make_path(const char *element, char *buffer, int size); |
Clark Williams | afe61f6 | 2009-11-08 09:01:37 -0600 | [diff] [blame] | 14 | |
Arnaldo Carvalho de Melo | ebf294b | 2011-11-16 14:03:07 -0200 | [diff] [blame] | 15 | extern char debugfs_mountpoint[]; |
| 16 | extern char tracing_events_path[]; |
| 17 | |
Clark Williams | afe61f6 | 2009-11-08 09:01:37 -0600 | [diff] [blame] | 18 | #endif /* __DEBUGFS_H__ */ |