mem_info_gtt_total(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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