xref: /openbmc/linux/fs/pstore/internal.h (revision 260ea95c)
1 #ifndef __PSTORE_INTERNAL_H__
2 #define __PSTORE_INTERNAL_H__
3 
4 #include <linux/types.h>
5 #include <linux/time.h>
6 #include <linux/pstore.h>
7 
8 #define PSTORE_DEFAULT_KMSG_BYTES 10240
9 extern unsigned long kmsg_bytes;
10 
11 #ifdef CONFIG_PSTORE_FTRACE
12 extern void pstore_register_ftrace(void);
13 extern void pstore_unregister_ftrace(void);
14 #else
15 static inline void pstore_register_ftrace(void) {}
16 static inline void pstore_unregister_ftrace(void) {}
17 #endif
18 
19 #ifdef CONFIG_PSTORE_PMSG
20 extern void pstore_register_pmsg(void);
21 extern void pstore_unregister_pmsg(void);
22 #else
23 static inline void pstore_register_pmsg(void) {}
24 static inline void pstore_unregister_pmsg(void) {}
25 #endif
26 
27 extern struct pstore_info *psinfo;
28 
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);
36 extern void	pstore_record_init(struct pstore_record *record,
37 				   struct pstore_info *psi);
38 
39 #endif
40