Skip to content

Commit b563d1f

Browse files
committed
multiboot2: Get a mutable reference to the basic memory information tag
1 parent c277fb8 commit b563d1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

multiboot2/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ impl BootInformation {
249249
self.get_tag::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
250250
}
251251

252+
/// Search for the basic memory info tag, return a mutable reference.
253+
pub fn basic_memory_info_tag_mut(&mut self) -> Option<&mut BasicMemoryInfoTag> {
254+
self.get_tag_mut::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
255+
}
256+
252257
/// Search for the ELF Sections.
253258
///
254259
/// # Examples

0 commit comments

Comments
 (0)