STRUCT PVR_PAGE_TABLE_L2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct pvr_page_table_l2(9) β€” a wrapped level 2 page table 🌸

okay bestie, welcome to the Kernel API Manual section for struct pvr_page_table_l2 β€” yes that whole manual, and yes this struct is lowkey the main character of the page table tree 🫢


✨ SYNOPSIS ✨

struct pvr_page_table_l2 {
    struct pvr_page_table_l1 *entries[ROGUE_MMUCTRL_ENTRIES_PC_VALUE];
    struct pvr_mmu_backing_page backing_page;
    u16 entry_count;
 };

look at her. she's structured. she's iconic. let's go through the members one by one πŸ’…


πŸ‘‘ Members

  • entries β€” these are the children of this node in the page table tree structure, and they're also mirror tables, no cap πŸͺž the indexing of this array is identical to that of the raw equivalent (pvr_page_table_l1_raw.entries), so you can vibe-check one against the other with zero mental gymnastics.
  • backing_page β€” a handle to the memory that holds the raw equivalent of this table. > For internal use only. so like… hands off, bestie πŸ™ˆ that's not for you.
  • entry_count β€” the current number of valid entries (that we know of) in this table. this value is essentially a refcount, fr fr β€” the table is destroyed when this value gets decremented to zero by pvr_page_table_l2_remove. it's giving "when the counter hits zero the party's over" 😭

πŸ’– Description

so to access the raw part of this table, you use pvr_page_table_l2_get_raw. alternatively, if you wanna access a raw entry directly, use pvr_page_table_l2_get_entry_raw. two doors, same house πŸšͺ✨

and here's the part that makes her special: a level 2 page table forms the root of the page table tree structure 🌳 so this type has no parent or parent_idx members. she answers to no one. mother is mothering πŸ‘‘


πŸ¦‹ SEE ALSO


πŸŽ€ and that's the whole page, bestie! this one came straight out of ./drivers/gpu/drm/imagination and it's dated October 2026 β€” so yeah, it's from the future, and it still ate πŸ’…βœ¨ go read the rest of the manual, ily, bye πŸ¦‹πŸ’–

πŸ“¦ where this page comes from