debugfs.h 702 B

1234567891011121314151617181920212223242526
  1. #ifndef __DEBUGFS_H__
  2. #define __DEBUGFS_H__
  3. #include <sys/mount.h>
  4. #ifndef MAX_PATH
  5. # define MAX_PATH 256
  6. #endif
  7. #ifndef STR
  8. # define _STR(x) #x
  9. # define STR(x) _STR(x)
  10. #endif
  11. extern const char *debugfs_find_mountpoint(void);
  12. extern int debugfs_valid_mountpoint(const char *debugfs);
  13. extern int debugfs_valid_entry(const char *path);
  14. extern char *debugfs_mount(const char *mountpoint);
  15. extern int debugfs_umount(void);
  16. extern int debugfs_write(const char *entry, const char *value);
  17. extern int debugfs_read(const char *entry, char *buffer, size_t size);
  18. extern void debugfs_force_cleanup(void);
  19. extern int debugfs_make_path(const char *element, char *buffer, int size);
  20. #endif /* __DEBUGFS_H__ */