drm_gem_vram_of_bo(9)
π drm_gem_vram_of_bo(9) β Kernel API Manual, but make it make sense π
okay so bestie, you found the drm_gem_vram_of_bo page in the Kernel API Manual and you're like "what even is this" β don't worry, it's actually such a cute little helper. π¦
β¨ NAME β¨
drm_gem_vram_of_bo β returns the container of type &struct drm_gem_vram_object for field bo.
like, it's the "who's your parent" function for VRAM buffer objects. π
πΈ SYNOPSIS πΈ
struct drm_gem_vram_object * drm_gem_vram_of_bo (struct ttm_buffer_object *bo );
that's it. that's the whole vibe. one little call, one big slay. β¨
π ARGUMENTS π
boβ the VRAM buffer object π« (yes, that's your input, the little embedded field you're trying to get the container for)
π RETURN π
the containing GEM VRAM object β it's giving "here's the bigger picture you were actually looking for" main character energy. π₯
π SEE ALSO π
kernel file ./include/drm/drm_gem_vram_helper.h, plus these absolute icons:
struct drm_gem_vram_object(9)drm_gem_vram_of_gem(9)DRM_GEM_VRAM_PLANE_HELPER_FUNCS(9)DRM_GEM_VRAM_DRIVER(9)struct drm_vram_mm(9)drm_vram_mm_of_bdev(9)
go read them, iykyk π
ngl, this page is tiny, but that's the point β it does one thing and it does it flawlessly. periodt. π
alright bestie, that's the whole page π«Ά β and for the credits moment: this one lives in ./include/drm, and it's dated October 2026 β (yes, future-coded of it, we love that for it π). now go forth and container_of responsibly π§π
π¦ 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