diff options
author | Matthew Garrett <mjg@redhat.com> | 2011-07-21 16:57:52 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2011-07-22 19:14:06 -0400 |
commit | 638c1fd3033c76778e6d9975ad8a4a9cdd5b96d9 (patch) | |
tree | de8b772157162b8a7a0901f4df5fb25faef6b21d /include/linux | |
parent | 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (diff) |
pstore: Extend API for more flexibility in new backends
Some pstore implementations may not have a static context, so extend the
API to pass the pstore_info struct to all calls and allow for a context
pointer.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pstore.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index 2455ef2683f0..b2f1d97f6909 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h | |||
@@ -38,9 +38,11 @@ struct pstore_info { | |||
38 | int (*open)(struct pstore_info *psi); | 38 | int (*open)(struct pstore_info *psi); |
39 | int (*close)(struct pstore_info *psi); | 39 | int (*close)(struct pstore_info *psi); |
40 | ssize_t (*read)(u64 *id, enum pstore_type_id *type, | 40 | ssize_t (*read)(u64 *id, enum pstore_type_id *type, |
41 | struct timespec *time); | 41 | struct timespec *time, struct pstore_info *psi); |
42 | u64 (*write)(enum pstore_type_id type, size_t size); | 42 | u64 (*write)(enum pstore_type_id type, size_t size, |
43 | int (*erase)(u64 id); | 43 | struct pstore_info *psi); |
44 | int (*erase)(u64 id, struct pstore_info *psi); | ||
45 | void *data; | ||
44 | }; | 46 | }; |
45 | 47 | ||
46 | #ifdef CONFIG_PSTORE | 48 | #ifdef CONFIG_PSTORE |