From fbfcfcff8a02f73b08ab02bd14d3ff84cfb31d88 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Tue, 12 Dec 2023 15:02:39 +0200 Subject: [PATCH] chore(docs): Try to generate documentation using tabnine --- machine/src/memory/mmu/mapping_record.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/machine/src/memory/mmu/mapping_record.rs b/machine/src/memory/mmu/mapping_record.rs index 48a0021..9612ef4 100644 --- a/machine/src/memory/mmu/mapping_record.rs +++ b/machine/src/memory/mmu/mapping_record.rs @@ -124,6 +124,18 @@ impl MappingRecord { }) } + /// Adds a new mapping to the mapping record. + /// + /// # Arguments + /// + /// * `name` - The name of the entity that owns the mapping. + /// * `virt_region` - The virtual memory region being mapped. + /// * `phys_region` - The physical memory region being mapped. + /// * `attr` - The memory attributes of the mapping. + /// + /// # Returns + /// + /// Returns `Ok(())` on success, or a string error message on failure. pub fn add( &mut self, name: &'static str,