xe_res_first_dma(9)
π xe_res_first_dma(9) β the Kernel API Manual glow-up
okay so bestie, welcome to xe_res_first_dma, straight out of the Kernel API Manual. this one is literally just here to initialize a xe_res_cursor with a dma_addr array. that's the whole vibe. let's get into it π
β¨ SYNOPSIS β¨
void xe_res_first_dma (const struct drm_pagemap_addr *dma_addr , u64
start , u64 size , struct xe_res_cursor *cur );
no cap, that's the exact signature β copy it, don't freestyle it π
π«Ά ARGUMENTS π«Ά
dma_addrβ thestruct drm_pagemap_addrarray you're gonna walk through. like, the whole lineup. πstartβ where the range begins. the starting line, the main character entrance. βsizeβ how big the range is. the amount of stuff we're covering, periodt. πcurβ the cursor object you're initializing. it's giving "fresh start, empty canvas". π¨
πΈ DESCRIPTION πΈ
so here's the tea π: you call this and it starts walking over the range of allocations between start and size. that's it, that's the function. lowkey iconic for how simple it is. π
π¦ SEE ALSO π¦
go peek at the kernel file ./drivers/gpu/drm/xe/xe_res_cursor.h (yes, that whole path, iykyk) and these fellow icons:
struct xe_res_cursor(9)xe_res_first(9)__xe_res_dma_next(9)xe_res_first_sg(9)xe_res_next(9)xe_res_dma(9)xe_res_is_vram(9)
okay that's the whole page, bestie, you ate that π«Ά this gem lives over in ./drivers/gpu/drm/xe and it's stamped October 2026 β go forth and walk those ranges β¨ππ
π¦ 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