drm_gem_vram_of_bo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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