ZXFoundation™ 26h2
Loading...
Searching...
No Matches
types.cxxm File Reference

Reverse-map (rmap) types — physical frame → list of referring VMA slots. Used by CoW partner invalidation and unified reclaim to walk peer mappings of a shared physical page. More...

import zxfoundation.memory.vm.types;
import zxfoundation.base.types;
Include dependency graph for types.cxxm:

Data Structures

struct  zxfoundation::memory::rmap::entry
 One reverse-map entry: identifies a single VMA slot that maps a given physical frame. More...
struct  zxfoundation::memory::rmap::peer_invalidation_result
 Effects of invalidating every peer of one reverse-mapped frame. More...
struct  zxfoundation::memory::rmap::peer_ref
 Mutable record of one rmap entry observed during a walk. More...

Typedefs

using zxfoundation::memory::rmap::visitor
 Visitor signature for rmap_for_each_phys.

Detailed Description

Reverse-map (rmap) types — physical frame → list of referring VMA slots. Used by CoW partner invalidation and unified reclaim to walk peer mappings of a shared physical page.

SPDX-License-Identifier: Apache-2.0

Typedef Documentation

◆ visitor

Initial value:
bool (*)(vm::vm_region& rgn, u64 phys,
u64 slot_va, u32 slot_index) noexcept
Definition types.cxxm:199

Visitor signature for rmap_for_each_phys.

Parameters
[in]rgnThe VMA owning the referring slot.
[in]physThe physical frame being walked.
[in]slot_vaThe virtual address of the slot (page-aligned).
[in]slot_indexIndex of the slot inside rgn.pages.slots[]. Lets the consumer directly index the slot without re-walking the page map by va.
Returns
true to continue the walk, false to stop early.