We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2273da4 commit a0c6307Copy full SHA for a0c6307
uefi/src/boot.rs
@@ -245,7 +245,13 @@ pub(crate) fn memory_map_size() -> MemoryMapMeta {
245
}
246
247
/// Stores the current UEFI memory map in an UEFI-heap allocated buffer
248
-/// and returns a [`MemoryMapOwned`].
+/// and returns a [`MemoryMapOwned`].
249
+///
250
+/// The implementation tries to mitigate some UEFI pitfalls, such as getting
251
+/// the right allocation size for the memory map to prevent
252
+/// [`Status::BUFFER_TOO_SMALL`]. If [`Status::BUFFER_TOO_SMALL`] is returned,
253
+/// further calls are likely to fail as well. If so, the situation may be
254
+/// considered as unrecoverable error.
255
///
256
/// # Parameters
257
0 commit comments