STRUCT DRM_VRAM_MM(9)
β¨ struct drm_vram_mm(9) β¨
okay so real quick bestie β this is a page from the Kernel API Manual, and today's main character is struct drm_vram_mm, which is literally just An instance of VRAM MM. that's the whole vibe. let's get into it π«Ά
πΈ NAME πΈ
struct drm_vram_mm β one single instance of VRAM MM. that's it, that's the whole name section, slay π
π SYNOPSIS π
here's the struct in all her glory, copy it exactly bestie:
struct drm_vram_mm {
uint64_t vram_base;
size_t vram_size;
struct ttm_device bdev;
};
π¦ Members π¦
vram_baseβ the base address of the managed video memory. like where the memory starts, fr fr πvram_sizeβ size of the managed video memory, measured in bytes. yes, bytes. not vibes. bytes.bdevβ the TTM BO device. this is your plug for actually touching the TTM BO device π₯
β¨ Description β¨
so here's the tea π: the fields struct drm_vram_mm.vram_base and struct drm_vram_mm.vrm_size are both managed by VRAM MM β so like, VRAM MM owns them β but they're still available for public read access if you just wanna peek. no cap.
and when you actually need to get at the TTM BO device? use the field struct drm_vram_mm.bdev. that's the doorway, iykyk πͺβ¨
π SEE ALSO π
go read these next, bestie, they're all in the kernel file ./include/drm/drm_gem_vram_helper.h:
struct drm_gem_vram_object(9)drm_gem_vram_of_bo(9)drm_gem_vram_of_gem(9)DRM_GEM_VRAM_PLANE_HELPER_FUNCS(9)DRM_GEM_VRAM_DRIVER(9)drm_vram_mm_of_bdev(9)
okay that's the whole page, no notes π go forth and manage that video memory, you absolute icon π
mwah π β this little love letter came from the source tree at ./include/drm, dated October 2026, and it's still struct drm_vram_mm(9) girlie to the very end πβ¨
π¦ 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