pub fn map(&mut self, frame: PhysFrame, flags: PageTableFlags, active_table: &mut ActivePageTable) -> VirtAddr {
        assert!(active_table.translate_page(self.page).is_err(), "temporary page is already mapped");
        let result = unsafe { active_table.map_to(self.page, frame, flags, FRAME_ALLOCATOR.lock().as_mut().unwrap()).unwrap() };

        result.flush();
        self.page.start_address()
    }
/// Maps the temporary page to the given frame in the active table.
/// Returns the start address of the temporary page.
Maps the temporary page to the given frame in the active table.
Returns the start address of the temporary page.
Maps the temporary page to the given frame in the active table . Returns the start address of the temporary page .
pub fn map(&mut self, frame: PhysFrame, flags: PageTableFlags, active_table: &mut ActivePageTable) -> VirtAddr {
        assert!(active_table.translate_page(self.page).is_err(), "temporary page is already mapped");
        let result = unsafe { active_table.map_to(self.page, frame, flags, FRAME_ALLOCATOR.lock().as_mut().unwrap()).unwrap() };
        result.flush();
        self.page.start_address()
    }
pub fn map ( & mut self , frame : PhysFrame , flags : PageTableFlags , active_table : & mut ActivePageTable ) -> VirtAddr { assert ! ( active_table translate_page ( self page ) is_err ( ) " " ) ; let result = unsafe { active_table . map_to ( self . page , frame , flags , FRAME_ALLOCATOR . lock ( ) . as_mut ( ) . unwrap ( ) ) . unwrap ( ) } ; result . flush ( ) ; self . page . start_address ( ) }
Maps the temporary page to the given frame in the active table.
Maps the temporary page to the given frame in the active table .
&mut self
frame
PhysFrame
flags
PageTableFlags
active_table
&mut ActivePageTable
&mut self
frame
PhysFrame
flags
PageTableFlags
active_table
&mut ActivePageTable