amdgpu_vram...visible_size(9)
π 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β anamdgpu_bobuffer 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:
mem_info_vram_total(9)mem_info_vis_vram_total(9)mem_info_vram_used(9)mem_info_vis_vram_used(9)mem_info_vram_vendor(9)amdgpu_vram_mgr_vis_size(9)amdgpu_vram_mgr_reserve_range(9)amdgpu_vram_mgr_query_page_status(9)amdgpu_vram_mgr_new(9)amdgpu_vram_mgr_del(9)amdgpu_vram_mgr_alloc_sgt(9)amdgpu_vram_mgr_free_sgt(9)amdgpu_vram_mgr_vis_usage(9)amdgpu_vram_mgr_clear_reset_blocks(9)amdgpu_vram_mgr_intersects(9)amdgpu_vram_mgr_compatible(9)amdgpu_vram_mgr_debug(9)amdgpu_vram_mgr_init(9)amdgpu_vram_mgr_fini(9)
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
- 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