MCPcopy Create free account
hub / github.com/Infinity-OS/infinity / identity_map

Method identity_map

src/memory/paging/mapper.rs:95–100  ·  view source on GitHub ↗

Identity map the given frame with the provided flags. The `FrameAllocator` is used to create new page tables if needed.

(&mut self, frame: Frame, flags: EntryFlags, allocator: &mut A)

Source from the content-addressed store, hash-verified

93 /// Identity map the given frame with the provided flags.
94 /// The `FrameAllocator` is used to create new page tables if needed.
95 pub fn identity_map<A>(&mut self, frame: Frame, flags: EntryFlags, allocator: &mut A)
96 where A: FrameAllocator
97 {
98 let page = Page::containing_address(frame.start_address());
99 self.map_to(page, frame, flags, allocator)
100 }
101
102 /// Unmaps the given page and adds all freed frames to the given `FrameAllocator`.
103 pub fn unmap<A>(&mut self, page: Page, allocator: &mut A)

Callers 1

remap_the_kernelFunction · 0.80

Calls 2

start_addressMethod · 0.45
map_toMethod · 0.45

Tested by

no test coverage detected