]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - fs/pstore/internal.h
efi-pstore: Refactor erase routine
[mirror_ubuntu-bionic-kernel.git] / fs / pstore / internal.h
CommitLineData
060287b8
AV
1#ifndef __PSTORE_INTERNAL_H__
2#define __PSTORE_INTERNAL_H__
3
67a101f5
AV
4#include <linux/types.h>
5#include <linux/time.h>
060287b8
AV
6#include <linux/pstore.h>
7
65f8c95e
AV
8#ifdef CONFIG_PSTORE_FTRACE
9extern void pstore_register_ftrace(void);
ee1d2674 10extern void pstore_unregister_ftrace(void);
65f8c95e
AV
11#else
12static inline void pstore_register_ftrace(void) {}
ee1d2674 13static inline void pstore_unregister_ftrace(void) {}
65f8c95e
AV
14#endif
15
9d5438f4
MS
16#ifdef CONFIG_PSTORE_PMSG
17extern void pstore_register_pmsg(void);
ee1d2674 18extern void pstore_unregister_pmsg(void);
9d5438f4
MS
19#else
20static inline void pstore_register_pmsg(void) {}
ee1d2674 21static inline void pstore_unregister_pmsg(void) {}
9d5438f4
MS
22#endif
23
060287b8
AV
24extern struct pstore_info *psinfo;
25
366f7e7a 26extern void pstore_set_kmsg_bytes(int);
6dda9266 27extern void pstore_get_records(int);
3a7d2fd1
KC
28extern void pstore_get_backend_records(struct pstore_info *psi,
29 struct dentry *root, int quiet);
30extern int pstore_mkfile(struct dentry *root,
31 struct pstore_record *record);
7e26e9ff 32extern bool pstore_is_mounted(void);
060287b8
AV
33
34#endif