pub fn create_identity_mapping<F: Into<PteFlagsArch>>(
    num_pages: usize,
    flags: F
) -> Result<MappedPages, &'static str>
Expand description

Creates an identity mapping at a random available virtual and physical address.

The returned MappedPages is guaranteed to have virtual pages mapped to physical frames with the same virtual addresses as physical addresses.