STRUCT PVR_MMU_CONTEXT(9)
π struct pvr_mmu_context(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for struct pvr_mmu_context, and it's genuinely not as scary as it sounds, i promise π«Ά
β¨ NAME β¨
struct pvr_mmu_context β the context that holds data for operations at the page catalogue level, and it's intended to be used with a VM context. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
struct pvr_mmu_context {
struct pvr_device *pvr_dev;
struct pvr_page_table_l2 page_table_l2;
};
look at her. two members. immaculate. π
π¦ Members π¦
pvr_devβ the PVR device that belongs to the owning VM context. like, whose device is this anyway? this one πpage_table_l2β the MMU table root. the literal root of the whole table tree, no cap π
π SEE ALSO π
okay this is the part where the manpage just... goes off. buckle up bestie, we're listing everything and i mean everything π
The source file itself:
- Kernel file
./drivers/gpu/drm/imagination/pvr_mmu.c
Flushing & the big picture:
pvr_mmu_set_flush_flags(9)pvr_mmu_flush_request_all(9)pvr_mmu_flush_exec(9)- PowerVR Virtual Memory Handling(9)
- PowerVR Virtual Memory Handling (constants)(9)
MMU backing pages:
- MMU backing pages(9)
- MMU backing pages (constants)(9)
struct pvr_mmu_backing_page(9)pvr_mmu_backing_page_init(9)pvr_mmu_backing_page_fini(9)pvr_mmu_backing_page_sync(9)
Raw page tables:
- Raw page tables(9)
struct pvr_page_table_l2_entry_raw(9)pvr_page_table_l2_entry_raw_set(9)struct pvr_page_table_l1_entry_raw(9)pvr_page_table_l1_entry_raw_set(9)struct pvr_page_table_l0_entry_raw(9)struct pvr_page_flags_raw(9)pvr_page_table_l0_entry_raw_set(9)pvr_page_flags_raw_create(9)struct pvr_page_table_l2_raw(9)struct pvr_page_table_l1_raw(9)struct pvr_page_table_l0_raw(9)
Mirror page tables:
- Mirror page tables(9)
struct pvr_page_table_l2(9)pvr_page_table_l2_init(9)pvr_page_table_l2_fini(9)pvr_page_table_l2_sync(9)pvr_page_table_l2_get_raw(9)pvr_page_table_l2_get_entry_raw(9)pvr_page_table_l2_entry_is_valid(9)struct pvr_page_table_l1(9)pvr_page_table_l1_init(9)pvr_page_table_l1_free(9)pvr_page_table_l1_sync(9)pvr_page_table_l1_get_raw(9)pvr_page_table_l1_get_entry_raw(9)pvr_page_table_l1_entry_is_valid(9)struct pvr_page_table_l0(9)pvr_page_table_l0_init(9)pvr_page_table_l0_free(9)pvr_page_table_l0_sync(9)pvr_page_table_l0_get_raw(9)pvr_page_table_l0_get_entry_raw(9)pvr_page_table_l0_entry_is_valid(9)
Pointers, op contexts & inserting/removing:
struct pvr_page_table_ptr(9)struct pvr_mmu_op_context(9)pvr_page_table_l2_insert(9)pvr_page_table_l2_remove(9)pvr_page_table_l1_insert(9)pvr_page_table_l1_remove(9)pvr_page_table_l0_insert(9)pvr_page_table_l0_remove(9)
Page table index utilities:
- Page table index utilities(9)
pvr_page_table_l2_idx(9)pvr_page_table_l1_idx(9)pvr_page_table_l0_idx(9)
High-level page table operations:
- High-level page table operations(9)
pvr_page_table_l1_get_or_insert(9)pvr_page_table_l0_get_or_insert(9)pvr_mmu_context_create(9)pvr_mmu_context_destroy(9)pvr_mmu_get_root_table_dma_addr(9)pvr_page_table_l1_alloc(9)pvr_page_table_l0_alloc(9)
Op context sync & table loading:
pvr_mmu_op_context_require_sync(9)pvr_mmu_op_context_sync_manual(9)pvr_mmu_op_context_sync_partial(9)pvr_mmu_op_context_sync(9)pvr_mmu_op_context_load_tables(9)pvr_mmu_op_context_set_curr_page(9)pvr_mmu_op_context_next_page(9)
Single page operations:
- Single page operations(9)
pvr_page_create(9)pvr_page_destroy(9)pvr_mmu_op_context_destroy(9)pvr_mmu_op_context_create(9)pvr_mmu_op_context_unmap_curr_page(9)pvr_mmu_unmap(9)pvr_mmu_map_sgl(9)pvr_mmu_map(9)
like... that's a lot of cross-references and honestly? she ate π₯
ngl bestie, if you actually read all of those you're built different π but fr fr they're all in the original page, so they had to come along β no skipping the "boring" parts around here π
π§ Sign-off π§
this little gem lives in ./drivers/gpu/drm/imagination, dated October 2026, and the header up top said struct pvr_mmu_context(9) β slay, go read the kernel source, ily, bye β¨ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms