amdgpu_res_first(9)
πΈ amdgpu_res_first(9) πΈ
okay so bestie, welcome to the Kernel API Manual</> β section 9, function amdgpu_res_first, and yes this is THE glow-up era of cursor initialization π
β¨ NAME β¨
amdgpu_res_first β initialize a amdgpu_res_cursor
like, that's literally its whole job and it ate π
π SYNOPSIS π
void amdgpu_res_first (struct ttm_resource *res , uint64_t start ,
uint64_t size , struct amdgpu_res_cursor *cur );
no cap, that's the whole signature β memorize it, it's giving main character energy π¦
π ARGUMENTS π
resβ the TTM resource object you're about to walk through, like it's the hallway and you're doing a vibe check πΆββοΈstartβ where the range begins. the starting line. the beginning of the era β¨sizeβ how big the range is, fr frcurβ the cursor object you're initializing. this is the one getting set up. make it iconic π
π§ DESCRIPTION π§
Start walking over the range of allocations between start and size. that's it, that's the whole thing β you're kicking off the stroll through the allocation range, and cur is your little tour guide π«Ά
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.hβ go read it, it's lowkey important π amdgpu_res_next(9)amdgpu_res_cleared(9)
those two are the sequels, you're gonna want them, iykyk π
ngl bestie, this page is short but it's a lil bop. read it twice, it's fine π
and that's the whole page!! brought to you by the fine folks over at ./drivers/gpu/drm/amd/amdgpu (that's the source/version, periodt π), dated October 2026 β yes, october, that's not a typo, go off calendar icon πΈπ
π¦ 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