diff options
author | Matthew Garrett <mjg@redhat.com> | 2011-07-21 16:57:53 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2011-07-22 16:14:20 -0700 |
commit | 56280682ceeef74b692b3e21d1872049eea7c887 (patch) | |
tree | 6d00729db23dff065ad60bf2f7be3f96b6fd4008 /include | |
parent | 638c1fd3033c76778e6d9975ad8a4a9cdd5b96d9 (diff) | |
download | linux-56280682ceeef74b692b3e21d1872049eea7c887.tar.gz linux-56280682ceeef74b692b3e21d1872049eea7c887.tar.bz2 linux-56280682ceeef74b692b3e21d1872049eea7c887.zip |
pstore: Add extra context for writes and erases
EFI only provides small amounts of individual storage, and conventionally
puts metadata in the storage variable name. Rather than add a metadata
header to the (already limited) variable storage, it's easier for us to
modify pstore to pass all the information we need to construct a unique
variable name to the appropriate functions.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pstore.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index b2f1d97f6909..12be8f193d09 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -39,9 +39,10 @@ struct pstore_info { int (*close)(struct pstore_info *psi); ssize_t (*read)(u64 *id, enum pstore_type_id *type, struct timespec *time, struct pstore_info *psi); - u64 (*write)(enum pstore_type_id type, size_t size, + u64 (*write)(enum pstore_type_id type, int part, + size_t size, struct pstore_info *psi); + int (*erase)(enum pstore_type_id type, u64 id, struct pstore_info *psi); - int (*erase)(u64 id, struct pstore_info *psi); void *data; }; |