Function memory::map_frame_range
source · pub fn map_frame_range<F: Into<PteFlagsArch>>(
start_address: PhysicalAddress,
size_in_bytes: usize,
flags: F
) -> Result<MappedPages, &'static str>
Expand description
A convenience function that maps randomly-allocated pages to the given range of frames.
Locking / Deadlock
Currently, this function acquires the lock on the frame allocator and the kernel’s MemoryManagementInfo
instance.
Thus, the caller should ensure that the locks on those two variables are not held when invoking this function.