stlog.h 769 B

123456789101112131415161718192021222324252627282930313233
  1. /* stlog internals
  2. *
  3. */
  4. #ifndef _LINUX_STLOG_H
  5. #define _LINUX_STLOG_H
  6. #define STLOG_ACTION_CLOSE 0
  7. #define STLOG_ACTION_OPEN 1
  8. #define STLOG_ACTION_READ 2
  9. #define STLOG_ACTION_READ_ALL 3
  10. #define STLOG_ACTION_WRITE 4
  11. #define STLOG_ACTION_SIZE_BUFFER 5
  12. #define STLOG_FROM_READER 0
  13. #define STLOG_FROM_PROC 1
  14. #define CONFIG_STLOG
  15. int do_stlog(int type, char __user *buf, int count, bool from_file);
  16. int do_stlog_write(int type, const char __user *buf, int count, bool from_file);
  17. int vstlog(const char *fmt, va_list args);
  18. int stlog(const char *fmt, ...);
  19. #ifdef CONFIG_STLOG
  20. #define ST_LOG(fmt,...) stlog(fmt,##__VA_ARGS__)
  21. #else
  22. #define ST_LOG(fmt,...)
  23. #endif /* CONFIG_STLOG */
  24. #endif /* _STLOG_H */