Skip to main content

Module mem

Module mem 

Source

Re-exports§

pub use mmu::MemAttributes;
pub use mmu::PteConfig;

Modules§

frame
mmu

Structs§

DeferredPageTableFrames
Intermediate page-table frames detached by one leaf removal.
DetachedPageTableFrame
A page-table frame detached from a live page-table tree.
Frame
页表帧,代表一个物理页面上的页表
HugeSplitApplyError
Failed structural apply that returns the still-unpublished deposit to its caller. Transactional users must not lose the only child-table owner merely because the observed huge leaf became stale before apply.
HugeSplitDeposit
A child-table deposit bound to one observed huge leaf.
InstalledHugeSplit
Receipt proving that one deposited child table is now reachable from the page-table tree.
MapConfig
页表映射配置
MapRecursiveConfig
内部映射递归配置
MemoryDescriptor
PageTable
PageTableInfo
PageTableLeafPlan
Immutable identity of one occupied leaf.
PageTableMapApplyError
Failed structural apply that returns the still-unpublished map deposit.
PageTableMapDeposit
Move-only ownership of a detached page-table suffix for one exact leaf.
PageTableMapPlan
Allocation-free description of where one absent leaf may be installed.
PageTableMovePlan
Allocation-free preimage for one page-table leaf relocation.
PageTablePathApplyError
Failed path publication that returns every still-detached table frame.
PageTablePathDeposit
Move-only ownership of page-table directories prepared for one vacant leaf.
PageTableRef
PageTableWalker
页表遍历迭代器
PhysAddr
A physical memory address.
PteInfo
页表项信息,包含原PTE对象
UnmapConfig
取消映射配置
UnmapRecursiveConfig
内部取消映射递归配置
VirtAddr
A virtual memory address.
VirtualAddressSpaceLayout
Platform-owned page-table virtual-address layout.
WalkConfig
页表遍历配置

Enums§

MemoryType
PagingError
VirtualAddressSpaceError
Invalid platform virtual-address geometry.

Constants§

GB
KB
KIMAGE_MAP_ALIGN
MB

Traits§

FrameAllocator
PageTableEntry
PageTableOp
TableMeta

Functions§

__io
IO 物理地址应当转换为的内核虚拟地址
__va
RAM 物理地址应当转换为的内核虚拟地址
cpu_area_phys_to_virt
dcache_range
dma_coherent_after_mapping_update
dma_coherent_before_map_uncached
dma_coherent_before_unmap_uncached
memory_map
page_size
phys_to_virt
物理RAM实际转换为的内核虚拟地址
print_memory_map
stack_size
virt_to_phys
virtual_address_space
vm_load_offset
Get the offset between virtual address and physical address of the loaded kernel image

Type Aliases§

MemoryMap
PagingResult
PteConfigOf
The opaque leaf-entry configuration used by a page-table metadata type.