Clark Williams | afe61f6 | 2009-11-08 09:01:37 -0600 | [diff] [blame] | 1 | #ifndef __DEBUGFS_H__ |
| 2 | #define __DEBUGFS_H__ |
| 3 | |
| 4 | #include <sys/mount.h> |
| 5 | |
| 6 | #ifndef MAX_PATH |
| 7 | # define MAX_PATH 256 |
| 8 | #endif |
| 9 | |
| 10 | #ifndef STR |
| 11 | # define _STR(x) #x |
| 12 | # define STR(x) _STR(x) |
| 13 | #endif |
| 14 | |
| 15 | extern const char *debugfs_find_mountpoint(void); |
| 16 | extern int debugfs_valid_mountpoint(const char *debugfs); |
| 17 | extern int debugfs_valid_entry(const char *path); |
Xiao Guangrong | 29c52aa | 2009-12-28 16:47:12 +0800 | [diff] [blame] | 18 | extern char *debugfs_mount(const char *mountpoint); |
Clark Williams | afe61f6 | 2009-11-08 09:01:37 -0600 | [diff] [blame] | 19 | extern int debugfs_umount(void); |
| 20 | extern int debugfs_write(const char *entry, const char *value); |
| 21 | extern int debugfs_read(const char *entry, char *buffer, size_t size); |
| 22 | extern void debugfs_force_cleanup(void); |
| 23 | extern int debugfs_make_path(const char *element, char *buffer, int size); |
| 24 | |
| 25 | #endif /* __DEBUGFS_H__ */ |