]> git.karo-electronics.de Git - karo-tx-linux.git/blob - fs/pstore/internal.h
Merge tag 'gpio-v4.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[karo-tx-linux.git] / fs / pstore / internal.h
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 #ifdef CONFIG_PSTORE_FTRACE
9 extern void pstore_register_ftrace(void);
10 extern void pstore_unregister_ftrace(void);
11 #else
12 static inline void pstore_register_ftrace(void) {}
13 static inline void pstore_unregister_ftrace(void) {}
14 #endif
15
16 #ifdef CONFIG_PSTORE_PMSG
17 extern void pstore_register_pmsg(void);
18 extern void pstore_unregister_pmsg(void);
19 #else
20 static inline void pstore_register_pmsg(void) {}
21 static inline void pstore_unregister_pmsg(void) {}
22 #endif
23
24 extern struct pstore_info *psinfo;
25
26 extern void     pstore_set_kmsg_bytes(int);
27 extern void     pstore_get_records(int);
28 extern void     pstore_get_backend_records(struct pstore_info *psi,
29                                            struct dentry *root, int quiet);
30 extern int      pstore_mkfile(struct dentry *root,
31                               struct pstore_record *record);
32 extern bool     pstore_is_mounted(void);
33 extern void     pstore_record_init(struct pstore_record *record,
34                                    struct pstore_info *psi);
35
36 #endif