amdgpu_gtt_m...lloc_entries(9)
π amdgpu_gtt_m...lloc_entries(9) β the Kernel API Manual, bestie edition
okay so you found your way into the kernel API manual, specifically amdgpu_gtt_m...lloc_entries(9), and honestly? iconic of you. this is the group chat where we explain what this little helper does, no gatekeeping, fr fr π
β¨ NAME β¨
amdgpu_gtt_mgr_alloc_entries β alloc GART entries without GTT bo π
like, it grabs you GART entries and it does not need a GTT BO to do it. main character behavior ngl.
πΈ SYNOPSIS πΈ
int amdgpu_gtt_mgr_alloc_entries (struct amdgpu_gtt_mgr *mgr , struct
drm_mm_node *mm_node , u64 num_pages , enum drm_mm_insert_mode mode );
okay so it returns an int, takes four things, and yes the line break in the middle is exactly how the original rolls, we're keeping it, it's giving vintage π
π¦ ARGUMENTS π¦
mgrβ the GTT manager object. the boss. the one in charge. π«Άmm_nodeβ the drm mm node where the new allocation node information gets returned. it's the little vessel that carries the news back to you β¨num_pagesβ the number of pages for the new allocation. count 'em, bestie.modeβ the new allocation mode. pick your vibe, it's literally in the name π
π DESCRIPTION π
so this is the helper that dynamically allocs GART entries to map memory that is not associated with a GTT BO. and before you ask, yes, that's a whole mood β examples include VRAM BO physical memory and remote physical memory π
basically: memory that needs mapping but doesn't have a GTT BO along for the ride gets its GART entries from here. slay.
π SEE ALSO π
first up, the kernel file, because that's where the actual lore lives:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
then the whole friend group, in order, and yes we're naming every single one, bestie, we don't do partial lists here π₯
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_new(9)amdgpu_gtt_mgr_del(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)
and that's the whole page, no crumbs left behind π this came to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β so mark your calendar, it's giving future icon behavior β bye bestie, go map something π
β¨
π¦ 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