amdgpu_res_first(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 fr
  • cur β€” 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 πŸ”₯

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