STRUCT DRM_VRAM_MM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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