[PATCH v2 1/2] bloblist: add api to get blob with size

Simon Glass sjg at chromium.org
Tue Jan 7 16:30:04 CET 2025


On Tue, 7 Jan 2025 at 08:03, Raymond Mao <raymond.mao at linaro.org> wrote:
>
> bloblist_find function only returns the pointer of blob data,
> which is fine for those self-describing data like FDT.
> But as a common scenario, an interface is needed to retrieve both
> the pointer and the size of the blob data.
>
> Add a few ut test cases for the new api.
>
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> ---
> Changes in v2
> - Rename function argument.
> - Add ut tests.
>
>  common/bloblist.c      | 17 +++++++++++++++--
>  include/bloblist.h     | 18 ++++++++++++++++++
>  test/common/bloblist.c |  4 ++++
>  3 files changed, 37 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list