diff options
| author | Tom Rini <[email protected]> | 2023-08-25 17:52:59 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-08-25 17:52:59 -0400 |
| commit | 05763b71d2fcfe9729bf5ef0b14bd00c3af0c985 (patch) | |
| tree | 8a62bb1cda41f5fb2ff2cb0211e927e45645e18a /lib | |
| parent | 7c6b18fb5494a1da2421b16c42d31fc466c38362 (diff) | |
| parent | 84b08afcbb8f8b4402b940d87bf5822984eedb3d (diff) | |
Merge branch '2023-08-25-add-persistent-config-editor-via-expo' into next
To quote the author:
So far cedit does not support reading and writing the configuration.
This series add several features related to this:
First, it adds support for using a file on a filesystem. This is in
FDT format and provides enough information to reset the cedit back to
the saved settings.
Second, it adds support for using the U-Boot environment. Since the
environment is generally saved across reboots, this feature provides an
easy way of storing the state on most boards. The variables all have a
'c.' prefix to avoid confusion with other variables.
Finally it adds support for using CMOS RAM. This is commonly used on x86
devices to store BIOS settings. The expo schema provides information on
the register layout.
Some other minor tweaks and improvements are included along the way.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/abuf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/abuf.c b/lib/abuf.c index bd270467dd4..ce2cff53dc9 100644 --- a/lib/abuf.c +++ b/lib/abuf.c @@ -82,6 +82,11 @@ bool abuf_realloc(struct abuf *abuf, size_t new_size) } } +bool abuf_realloc_inc(struct abuf *abuf, size_t inc) +{ + return abuf_realloc(abuf, abuf->size + inc); +} + void *abuf_uninit_move(struct abuf *abuf, size_t *sizep) { void *ptr; |
