summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-03 10:47:51 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-06 23:54:57 +0300
commit16b27b67c5002c13d84bdf68727954ec765f0731 (patch)
tree46ab97420a9d4e14769d941a2feb5fabbfb2fb76 /include
parent874490c7ec7a05a429b951720f11a3b966ec0572 (diff)
downloadu-boot-16b27b67c5002c13d84bdf68727954ec765f0731.tar.xz
efi_loader: function to unlink udevice and handle
When deleting a device or a handle we must remove the link between the two to avoid dangling references. Provide function efi_unlink_dev() for this purpose. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 8c45e3ee25..6f78f77404 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -708,6 +708,7 @@ const char *guid_to_sha_str(const efi_guid_t *guid);
int algo_to_len(const char *algo);
int efi_link_dev(efi_handle_t handle, struct udevice *dev);
+int efi_unlink_dev(efi_handle_t handle);
/**
* efi_size_in_pages() - convert size in bytes to size in pages