amdgpu_gtt_mgr_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_gtt_mgr_new(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's a tiny little function page from the AMDGPU GTT manager corner of the kernel, and honestly? it's short, it's sweet, it's giving "one job and one job only" πŸ’…


✨ NAME ✨

amdgpu_gtt_mgr_new β€” literally just allocate a new node πŸŽ€ that's it, that's the whole assignment


πŸ¦‹ SYNOPSIS πŸ¦‹

int amdgpu_gtt_mgr_new (struct ttm_resource_manager *man , struct
       ttm_buffer_object *tbo , const struct ttm_place *place , struct
       ttm_resource **res );

she returns an int, she takes four args, she's iconic, no notes 🫢


🌸 ARGUMENTS 🌸

  • man β€” the TTM memory type manager πŸ’– this is the boss of the memory type you're poking at
  • tbo β€” the TTM BO we need this range for ✨ (BO = buffer object, in case the acronym was just vibing there unannounced)
  • place β€” placement flags and restrictions πŸŽ€ all the "where is this allowed to live" energy
  • res β€” the resulting mem object 🌈 this is where the output lands, bestie

πŸ’… DESCRIPTION πŸ’…

Dummy 🫢 allocate the node but no space for it yet. no cap β€” she makes the node, she does not reserve any room for it. that's the whole bit. it's giving placeholder energy, it's giving "I'm here but I'm not staying," and honestly? we respect it πŸ’œ

lowkey important: "no space for it yet" is the actual documented behavior, so don't go assuming she's reserving GTT for you. she is not. periodt πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file herself, plus the whole friend group πŸ’–:

like, the whole GTT mgr fam is in the group chat 🧚 iykyk


okay and for the cute sign-off: this lil page lives in ./drivers/gpu/drm/amd/amdgpu 🌟 and it's dated October 2026 β€” scream it, frame it, cite it in your patch notes, mwah πŸ’‹ πŸ“

πŸ“¦ where this page comes from