MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / insert_framed_area

Method insert_framed_area

os/src/mm/memory_set.rs:52–62  ·  view source on GitHub ↗

Assume that no conflicts.

(
        &mut self,
        start_va: VirtAddr,
        end_va: VirtAddr,
        permission: MapPermission,
    )

Source from the content-addressed store, hash-verified

50 }
51 /// Assume that no conflicts.
52 pub fn insert_framed_area(
53 &mut self,
54 start_va: VirtAddr,
55 end_va: VirtAddr,
56 permission: MapPermission,
57 ) {
58 self.push(
59 MapArea::new(start_va, end_va, MapType::Framed, permission),
60 None,
61 );
62 }
63 pub fn remove_area_with_start_vpn(&mut self, start_vpn: VirtPageNum) {
64 if let Some((idx, area)) = self
65 .areas

Callers 2

kstack_allocFunction · 0.80
alloc_user_resMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected