mem_info_gtt_total(9)
π mem_info_gtt_total
okay bestie, welcome to the Kernel API Manual β this one's a section 9 page and honestly it's short and sweet, so let's get into it π
πΈ the vibes (a.k.a. what this even is)
So the amdgpu driver? It's out here providing a sysfs API for reporting the current total size of the GTT. That's it, that's the whole personality β¨
The file you wanna look at is mem_info_gtt_total, and it's literally the main character for this job β it returns the total size of the GTT block, in bytes. No cap, that's the entire flex π₯
ngl this one is a tiny page, so don't go looking for a million options β there aren't any. it just tells you the total GTT size in bytes and minds its business π
β¨ SEE ALSO β¨
like, go read these next, iykyk π«Ά
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 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_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)
and that's the whole page, bestie π this little icon lives over in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it goes by mem_info_gtt_total(9) β mwah, slay, go read the source ππ
π¦ 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