diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-10 14:14:06 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-16 08:34:06 +0100 |
commit | 95d18c5ed0ca952947214c619140e68b33005a4c (patch) | |
tree | f390180629ce889414b7587a8da850f0fdb6126b | |
parent | 3d595ac5f5cbcf4db793caee035ab28304f41457 (diff) | |
download | u-boot-95d18c5ed0ca952947214c619140e68b33005a4c.tar.gz u-boot-95d18c5ed0ca952947214c619140e68b33005a4c.tar.bz2 u-boot-95d18c5ed0ca952947214c619140e68b33005a4c.zip |
efi_loader: improve description of efi_file_from_path()
Provide a description of the function's logic.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | lib/efi_loader/efi_file.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c index c96a7f7ca3..8b9fa5885a 100644 --- a/lib/efi_loader/efi_file.c +++ b/lib/efi_loader/efi_file.c @@ -1098,6 +1098,15 @@ static const struct efi_file_handle efi_file_handle_protocol = { /** * efi_file_from_path() - open file via device path * + * The device path @fp consists of the device path of the handle with the + * simple file system protocol and one or more file path device path nodes. + * The concatenation of all file path names provides the total file path. + * + * The code starts at the first file path node and tries to open that file or + * directory. If there is a succeding file path node, the code opens it relative + * to this directory and continues iterating until reaching the last file path + * node. + * * @fp: device path * Return: EFI_FILE_PROTOCOL for the file or NULL */ |