MCPcopy Create free account
hub / github.com/Andy-Python-Programmer/aero / create_next_table

Method create_next_table

src/aero_kernel/src/mem/paging/mapper.rs:866–902  ·  view source on GitHub ↗

Internal helper function to create the page table of the next level if needed. If the passed entry is unused, a new frame is allocated from the given allocator, zeroed, and the entry is updated to that address. If the passed entry is already mapped, the next table is returned directly. Returns `MapToError::FrameAllocationFailed` if the entry is unused and the allocator returned `None`. Returns `

(
        &self,
        entry: &'b mut PageTableEntry,
        insert_flags: PageTableFlags,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

map_to_2mibMethod · 0.80
map_to_4kibMethod · 0.80

Calls 8

is_unusedMethod · 0.80
allocate_frameMethod · 0.80
set_frameMethod · 0.80
next_table_mutMethod · 0.80
is_emptyMethod · 0.45
flagsMethod · 0.45
set_flagsMethod · 0.45
zeroMethod · 0.45

Tested by

no test coverage detected