amdgpu_gtt_m...lloc_entries(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯


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