summaryrefslogtreecommitdiffstats
path: root/fs/pstore/internal.h
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2010-12-28 14:25:21 -0800
committerTony Luck <tony.luck@intel.com>2010-12-28 14:25:21 -0800
commitca01d6dd2d7a2652000307520777538740efc286 (patch)
treef419325637badb0ef7a3bfa29d520be2f5282220 /fs/pstore/internal.h
parent90a8a73c06cc32b609a880d48449d7083327e11a (diff)
downloadlinux-ca01d6dd2d7a2652000307520777538740efc286.tar.bz2
pstore: new filesystem interface to platform persistent storage
Some platforms have a small amount of non-volatile storage that can be used to store information useful to diagnose the cause of a system crash. This is the generic part of a file system interface that presents information from the crash as a series of files in /dev/pstore. Once the information has been seen, the underlying storage is freed by deleting the files. Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/internal.h')
-rw-r--r--fs/pstore/internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h
new file mode 100644
index 000000000000..76c26d2fab29
--- /dev/null
+++ b/fs/pstore/internal.h
@@ -0,0 +1,7 @@
+extern void pstore_get_records(void);
+extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
+ char *data, size_t size,
+ struct timespec time, int (*erase)(u64));
+extern int pstore_is_mounted(void);
+
+extern struct kobj_attribute pstore_kmsg_bytes_attr;