|
16 | 16 | //! |
17 | 17 | //! If you have a chunk of memory and want to parse it as UEFI memory map, which |
18 | 18 | //! might be the case if a bootloader such as GRUB or Limine passes its boot |
19 | | -//! information, you can use [`MemoryMapRef`] or [`MemoryMapRefMut`]. |
20 | | -//! TODO add constructors. |
| 19 | +//! information, you can use [`MemoryMapRef`] or [`MemoryMapRefMut`]. |
21 | 20 | //! |
22 | 21 | //! # All relevant exports: |
23 | 22 | //! |
@@ -50,12 +49,13 @@ impl Align for MemoryDescriptor { |
50 | 49 | } |
51 | 50 | } |
52 | 51 |
|
53 | | -/// A unique identifier of a memory map. |
| 52 | +/// A unique identifier of a UEFI memory map, used to tell the firmware that one |
| 53 | +/// has the latest valid memory map when exiting boot services. |
54 | 54 | /// |
55 | | -/// If the memory map changes, this value is no longer valid. |
56 | | -#[derive(Debug, Copy, Clone, Eq, PartialEq)] |
| 55 | +/// If the memory map changes, due to any allocation or deallocation, this value |
| 56 | +/// is no longer valid, and exiting boot services will fail. |
| 57 | +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] |
57 | 58 | #[repr(C)] |
58 | | -// TODO add some convenience?! |
59 | 59 | pub struct MemoryMapKey(pub(crate) usize); |
60 | 60 |
|
61 | 61 | /// A structure containing the meta attributes associated with a call to |
|
0 commit comments