doc: efi: Add the EFI-loader API documentation

Bring in the documentation from the efi_loader.h header file, so we can
see the API defined there.

Fix efi_alloc() to avoid a warning.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Simon Glass
2024-12-11 06:54:01 -07:00
parent ca2203ca86
commit 1afecc2db1
2 changed files with 7 additions and 1 deletions

View File

@@ -54,6 +54,12 @@ drivers, handles, loaded images, and the memory map).
.. kernel-doc:: cmd/efidebug.c
:internal:
Overall API
-----------
.. kernel-doc:: include/efi_loader.h
:internal:
Initialization of the UEFI sub-system
-------------------------------------

View File

@@ -764,7 +764,7 @@ efi_status_t efi_next_variable_name(efi_uintn_t *size, u16 **buf,
*
* Allocate memory from pool and zero it out.
*
* @size: number of bytes to allocate
* @len: number of bytes to allocate
* Return: pointer to allocated memory or NULL
*/
void *efi_alloc(size_t len);