File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ impl IndexMut<usize> for MemoryMapRefMut<'_> {
202
202
/// 1. create it using [`MemoryMapBackingMemory::new`]
203
203
/// 2. pass it to [`BootServices::get_memory_map`]
204
204
/// 3. construct a [`MemoryMapOwned`] from it
205
+ ///
206
+ /// [`BootServices::get_memory_map`]: crate::table::boot::BootServices::get_memory_map
205
207
#[ derive( Debug ) ]
206
208
#[ allow( clippy:: len_without_is_empty) ] // this type is never empty
207
209
pub ( crate ) struct MemoryMapBackingMemory ( NonNull < [ u8 ] > ) ;
@@ -248,8 +250,9 @@ impl MemoryMapBackingMemory {
248
250
}
249
251
250
252
/// Returns a "safe" best-effort size hint for the memory map size with
251
- /// some additional bytes in buffer compared to the [`crate::table::boot::mmap::MemoryMapMeta`].
252
- /// This helps
253
+ /// some additional bytes in buffer compared to the [`MemoryMapMeta`]. This
254
+ /// takes into account that, as you go, more (small) allocations might
255
+ /// happen.
253
256
#[ must_use]
254
257
fn safe_allocation_size_hint ( mmm : MemoryMapMeta ) -> usize {
255
258
// Allocate space for extra entries beyond the current size of the
You can’t perform that action at this time.
0 commit comments