amdgpu_gtt_mgr_new(9)
π 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 attboβ 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" energyresβ 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 π:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c mem_info_gtt_total(9)mem_info_gtt_used(9)amdgpu_gtt_mgr_has_gart_addr(9)amdgpu_gtt_mgr_mark_bo_teardown(9)amdgpu_gtt_mgr_del(9)amdgpu_gtt_mgr_alloc_entries(9)amdgpu_gtt_mgr_free_entries(9)amdgpu_gtt_mgr_recover(9)amdgpu_gtt_mgr_intersects(9)amdgpu_gtt_mgr_compatible(9)amdgpu_gtt_mgr_debug(9)amdgpu_gtt_mgr_init(9)amdgpu_gtt_mgr_fini(9)
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
- 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