diff options
author | Eric Richter <erichte@linux.ibm.com> | 2020-09-16 11:21:17 -0500 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-10-01 13:44:06 +1000 |
commit | f356c0671e5d99775ccde2e2b7f621f5fd0ea6d6 (patch) | |
tree | 81e2ed037d65183be45ad74a53643e14de24a962 /CONTRIBUTING.md | |
parent | c5c71a51616b6011c5a1ff59feb3618df6beb5b0 (diff) | |
download | skiboot-f356c0671e5d99775ccde2e2b7f621f5fd0ea6d6.zip skiboot-f356c0671e5d99775ccde2e2b7f621f5fd0ea6d6.tar.gz skiboot-f356c0671e5d99775ccde2e2b7f621f5fd0ea6d6.tar.bz2 |
secvar_util: add new helper functions
This patch adds the following helper functions:
- dealloc_secvar()
- new_secvar()
- copy_bank_list()
dealloc_secvar() frees a whole secvar_node reference including
its children allocations. This also updates the clear_bank_list()
helper function to use this destructor.
new_secvar() allocates a secvar_node, and fills it with data
provided via arguments.
copy_bank_list() creates a deep copy of a secvar bank list
Signed-off-by: Eric Richter <erichte@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions