STRUCT MSM_GEM_VMA(9)
π struct msm_gem_vma(9) π
okay bestie, welcome to the Kernel API Manual β this one's a little struct called struct msm_gem_vma and it's literally just a VMA mapping. that's the whole vibe. π
β¨ SYNOPSIS β¨
struct msm_gem_vma {
struct drm_gpuva base;
struct drm_mm_node node;
bool mapped;
};
no cap, that's the entire shape of it π¦
πΈ Members πΈ
baseβ this one inherits fromdrm_gpuva, so it's giving main character energy from its parent struct πnodeβ the mm node for VA allocation. that's the whole job.- lowkey important: this is only used by kernel managed VMs, so don't come for it if you're doing your own VM thing π
mappedβ the vibe check of the struct tbh: is this VMA mapped?bool, so it's a yes or a no, no in-between π€
π¦ Description π¦
so what is it? it represents a combination of a GEM object plus a VM. that's it, that's the whole concept. iconic honestly β¨
π SEE ALSO π
head over to the kernel file ./drivers/gpu/drm/msm/msm_gem.h and also peek at struct msm_gem_vm_log_entry(9), struct msm_gem_vm(9), and msm_gem_lock_vm_and_obj(9) β they're all in the group chat π«Ά
okay that's the whole page, you ate that π this little render came from ./drivers/gpu/drm/msm and it's dated October 2026 β go be the main character of your own VMA mapping 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