amdgpu_vram...visible_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_vram...visible_size(9) β€” bestie edition πŸ’–

okay so this is a page from the Kernel API Manual (yes, that's the manual name, we're in kernel-land now, hold my iced coffee 🧊) and it's all about one little function that answers a very specific question. let's get into it ✨


🌸 NAME 🌸

amdgpu_vram_mgr_bo_visible_size β€” literally just tells you the CPU visible BO size, no cap 🫢


✨ SYNOPSIS ✨

u64 amdgpu_vram_mgr_bo_visible_size (struct amdgpu_bo *bo );

that's it, that's the whole signature. it takes one amdgpu_bo pointer and hands you back a u64. slay πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bo β€” an amdgpu_bo buffer object, and heads up: it must be in VRAM ⚠️ like, that's not a suggestion, that's a requirement, so vibe check your bo before you call this fr.

πŸŽ€ RETURN πŸŽ€

it returns how much of the given amdgpu_bo buffer object actually lies in CPU visible VRAM πŸ’– so like, not the whole bo necessarily β€” just the part the CPU can literally see. it's giving "how much of this is in the front row" energy πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the kernel file where all the magic lives is ./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c β€” go read it if you're that kind of girl (respect 🫑).

and here's the whole friend group, all of them, in order:

no skips, we don't do that here πŸ’œ


ok and for the sign-off: this one's from ./drivers/gpu/drm/amd/amdgpu (that's the source/version, iykyk) and it's dated October 2026 🌈 so yeah, future vibes. periodt. go read your VRAM stats bestie πŸ’…βœ¨πŸ“
πŸ“¦ where this page comes from