aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Richter <erichte@linux.ibm.com>2020-09-16 11:21:14 -0500
committerOliver O'Halloran <oohall@gmail.com>2020-10-01 13:44:06 +1000
commit40f62c927a3ebd1a32b6900715ef42ffd401e4b9 (patch)
treeeccdaf3ad7291e3d925ec113b60d7ae47983a5cd
parentf65d51cdfefec2efdcdd718137c097b4e8197753 (diff)
downloadskiboot-40f62c927a3ebd1a32b6900715ef42ffd401e4b9.zip
skiboot-40f62c927a3ebd1a32b6900715ef42ffd401e4b9.tar.gz
skiboot-40f62c927a3ebd1a32b6900715ef42ffd401e4b9.tar.bz2
include/secvar.h: add .lockdown() hook to secvar storage driver
Previously, it was implied that the storage driver would lock itself after performing a write action. As this behavior is not particularly clear when reviewing the main secvar flow, this action instead has been made explicit. Signed-off-by: Eric Richter <erichte@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
-rw-r--r--include/secvar.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/secvar.h b/include/secvar.h
index ec812b8..7652553 100644
--- a/include/secvar.h
+++ b/include/secvar.h
@@ -9,9 +9,10 @@
struct secvar;
struct secvar_storage_driver {
- int (*load_bank)(struct list_head *bank, int section);
- int (*write_bank)(struct list_head *bank, int section);
- int (*store_init)(void);
+ int (*load_bank)(struct list_head *bank, int section);
+ int (*write_bank)(struct list_head *bank, int section);
+ int (*store_init)(void);
+ void (*lockdown)(void);
uint64_t max_var_size;
};