i915_vma_offset(9)
β¨ i915_vma_offset(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's from the kernel source file ./drivers/gpu/drm/i915/i915_vma.h in the i915 vma family, and it's literally the glow-up for your offset needs π
πΈ NAME πΈ
i915_vma_offset β bestie's little helper that gets you the va offset of the vma π¦
π SYNOPSIS π
u64 i915_vma_offset (const struct i915_vma *vma );
β¨ ARGUMENTS β¨
vmaβ the vma in question π«Ά (yes girl, the vma, that's her)
π§ DESCRIPTION π§
so like, GPU virtual address space can be allocated with padding π β yes, padding, as in extra space, as in the whole thing isn't always just exactly what you asked for, iykyk.
This function gives you the effective virtual address offset the gpu should use to access the bound data β¨. It's the one you want, the actual address-y bit, not just the raw allocation vibes. no cap.
π RETURN π
The effective virtual address offset π (a u64, if you were wondering, and of course you were)
π SEE ALSO π
Go check out the kernel file ./drivers/gpu/drm/i915/i915_vma.h and its besties:
i915_vma_size(9)i915_vma_pin_iomap(9)i915_vma_unpin_iomap(9)i915_vma_pin_fence(9)i915_vma_unpin_fence(9)for_each_ggtt_vma(9)i915_vma_get_current_resource(9)
π seriously, read them, they're iconic.
and that's the whole page, bestie β periodt π πΈ
so anyway, this was served up fresh by ./drivers/gpu/drm/i915, dated October 2026 β that's the version and the source, we love to see it π β¨ π
π¦ 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