Skip to content

Commit c92777d

Browse files
committed
doc: improve uefi::boot::memory_map() documentation
1 parent 7c5afc2 commit c92777d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

uefi/src/boot.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,13 @@ pub(crate) fn memory_map_size() -> MemoryMapMeta {
245245
}
246246

247247
/// Stores the current UEFI memory map in an UEFI-heap allocated buffer
248-
/// and returns a [`MemoryMapOwned`].
248+
/// 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.
249255
///
250256
/// # Parameters
251257
///

0 commit comments

Comments
 (0)