STRUCT XE_PAGEMAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct xe_pagemap(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual β€” this page is all about struct xe_pagemap, and it is literally giving β€œSVM memory management but make it a whole vibe.” ✨

🌸 NAME 🌸

struct xe_pagemap β€” manages xe device_private memory for SVM. That is the whole assignment, and she ate. πŸ’…

✨ SYNOPSIS ✨

struct xe_pagemap {
    struct dev_pagemap pagemap;
    struct drm_pagemap dpagemap;
    struct work_struct destroy_work;
    struct drm_pagemap_peer peer;
    resource_size_t hpa_base;
    struct xe_vram_region *vr;
};

πŸŽ€ Members πŸŽ€

okay so the members, one by one, no skipping:

  • pagemap β€” the struct dev_pagemap providing the struct pages. literally the page provider, iykyk. 🫢
  • dpagemap β€” the drm_pagemap managing allocation and migration. she's handling the alloc/migrate of it all. πŸ”₯
  • destroy_work β€” handles asnynchronous destruction and caching. yep, that spelling is right there in the original, and we are not fixing it because details matter. 😭
  • peer β€” used for pagemap owner computation. tiny field, big β€œwho owns this” energy. πŸ‘‘
  • hpa_base β€” the host physical address base for the managemd memory. again: original spelling, preserved, no cap. πŸ’€
  • vr β€” backpointer to the xe_vram region. she points back home. πŸŽ€

πŸ’œ SEE ALSO πŸ’œ

go read these too, bestie, they're all in the group chat:


mwah πŸ’‹ β€” this one's from ./drivers/gpu/drm/xe, dated October 2026, and that's the whole page, periodt. 🌈

πŸ“¦ where this page comes from