i915_vma_ge...ent_resource(9)
π NAME π
i915_vma_get_current_resource β bestie, this is the one that gets the current resource of the vma. We're in the Kernel API Manual and it's giving very "I live in the kernel tree" energy. π
β¨ SYNOPSIS β¨
struct i915_vma_resource * i915_vma_get_current_resource (struct
i915_vma *vma );
π ARGUMENTS π
vmaβ the vma you're pulling the current resource from. That's the one, no cap. π«Ά
πΈ DESCRIPTION πΈ
Okay so here's the tea: it's illegal to call this function if the vma is not bound. Not "illegal" like cops-and-robbers illegal β illegal like do not do this, bestie. π Vibe check your vma first. Is it bound? Because this function is assuming yes.
Fr fr, do not call this on an unbound vma. Periodt. π
π₯ RETURN π₯
A refcounted pointer to the current vma resource of the vma β assuming the vma is bound. That "assuming" is doing a lot of heavy lifting, so don't forget it. β¨
π¦ SEE ALSO π¦
The kernel file is ./drivers/gpu/drm/i915/i915_vma.h, and the squad pulls up like:
i915_vma_size(9)i915_vma_offset(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)
Mwah π β this page came from ./drivers/gpu/drm/i915, dated October 2026. That's the whole manual page, bestie, no cap. π«Άπ
π¦ 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