STRUCT XE_PAGEMAP(9)
π¦ 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β thestruct dev_pagemapproviding the struct pages. literally the page provider, iykyk. π«Άdpagemapβ thedrm_pagemapmanaging 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 thexe_vramregion. she points back home. π
π SEE ALSO π
go read these too, bestie, they're all in the group chat:
- Kernel file
./drivers/gpu/drm/xe/xe_svm.h xe_svm_range_pages_valid(9)xe_svm_range_has_dma_mapping(9)to_xe_range(9)xe_svm_range_start(9)xe_svm_range_end(9)xe_svm_range_size(9)
mwah π β this one's from ./drivers/gpu/drm/xe, dated October 2026, and that's the whole page, periodt. π
π¦ 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