1 #ifndef __PSTORE_INTERNAL_H__
2 #define __PSTORE_INTERNAL_H__
4 #include <linux/types.h>
5 #include <linux/time.h>
6 #include <linux/pstore.h>
8 #define PSTORE_DEFAULT_KMSG_BYTES 10240
9 extern unsigned long kmsg_bytes;
11 #ifdef CONFIG_PSTORE_FTRACE
12 extern void pstore_register_ftrace(void);
13 extern void pstore_unregister_ftrace(void);
15 static inline void pstore_register_ftrace(void) {}
16 static inline void pstore_unregister_ftrace(void) {}
19 #ifdef CONFIG_PSTORE_PMSG
20 extern void pstore_register_pmsg(void);
21 extern void pstore_unregister_pmsg(void);
23 static inline void pstore_register_pmsg(void) {}
24 static inline void pstore_unregister_pmsg(void) {}
27 extern struct pstore_info *psinfo;
29 extern void pstore_set_kmsg_bytes(int);
30 extern void pstore_get_records(int);
31 extern void pstore_get_backend_records(struct pstore_info *psi,
32 struct dentry *root, int quiet);
33 extern int pstore_mkfile(struct dentry *root,
34 struct pstore_record *record);
35 extern bool pstore_is_mounted(void);