ged_debugFS.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2015 MediaTek Inc.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __GED_DEBUG_FS_H__
  14. #define __GED_DEBUG_FS_H__
  15. #include <linux/seq_file.h>
  16. #include "ged_type.h"
  17. typedef ssize_t (GED_ENTRY_WRITE_FUNC)(
  18. const char __user *pszBuffer,
  19. size_t uiCount,
  20. loff_t uiPosition,
  21. void *pvData);
  22. GED_ERROR ged_debugFS_create_entry(
  23. const char* pszName,
  24. void* pvDir,
  25. struct seq_operations* psReadOps,
  26. GED_ENTRY_WRITE_FUNC* pfnWrite,
  27. void* pvData,
  28. struct dentry** ppsEntry);
  29. void ged_debugFS_remove_entry(
  30. struct dentry *psEntry);
  31. GED_ERROR ged_debugFS_create_entry_dir(
  32. const char* pszName,
  33. struct dentry* psParentDir,
  34. struct dentry** ppsDir);
  35. void ged_debugFS_remove_entry_dir(
  36. struct dentry *psDir);
  37. GED_ERROR ged_debugFS_init(void);
  38. void ged_debugFS_exit(void);
  39. #endif