STRUCT XE_RES_CURSOR(9)
π struct xe_res_cursor β Kernel API Manual β¨
okay so bestie, welcome to struct xe_res_cursor(9) π this little icon is literally the state holder for walking over dma mapping, vram_mgr, stolen_mgr, and gtt_mgr allocations. she's not doing the walking herself, she's just holding the vibe check while you do π«Ά
β¨ NAME β¨
struct xe_res_cursor β state for walking over dma mapping, vram_mgr, stolen_mgr, and gtt_mgr allocations πΈ
π SYNOPSIS π
struct xe_res_cursor {
u64 start;
u64 size;
u64 remaining;
void *node;
u32 mem_type;
struct scatterlist *sgl;
const struct drm_pagemap_addr *dma_addr;
struct gpu_buddy *mm;
u64 dma_start;
u64 dma_seg_size;
};
like, that's the whole struct, no cap π
π Members π
startβ start of cursor β¨sizeβ size of the current segment. the way she's segment-sized, honestly π¦remainingβ remaining bytes in cursor. the countdown queen πnodeβ opaque point current node cursor π (yes, "point" β that's what the original says, we don't fix it, we respect it)mem_typeβ memory type πsglβ scatterlist for cursor πdma_addrβ current element in astruct drm_pagemap_addrarray βmmβ buddy allocator for VRAM cursor π₯dma_startβ DMA start address for the current segment. This may be different todma_addr.addrsince elements in the array may be coalesced to a single segment π like, don't assume they match, bestiedma_seg_sizeβ size of the current DMA segment π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_res_cursor.hxe_res_first(9),__xe_res_dma_next(9),xe_res_first_sg(9),xe_res_first_dma(9),xe_res_next(9),xe_res_dma(9),xe_res_is_vram(9)π«Ά go read those next, iykyk
and that's the whole page, periodt ππ this dropped from ./drivers/gpu/drm/xe back in October 2026 β go off, kernel gang, ily π§π
π¦ 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