i915_vma_insert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– i915_vma_insert(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for i915_vma_insert(9) β€” the function that finds a slot for the vma in its address space. lowkey iconic kernel business, no cap 🫢✨


🌸 NAME 🌸

i915_vma_insert β€” finds a slot for the vma in its address space πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int i915_vma_insert (struct i915_vma *vma , struct i915_gem_ww_ctx *ww ,
       u64 size , u64 alignment , u64 flags );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • vma β€” the vma. literally the vma πŸ’–
  • ww β€” An optional struct i915_gem_ww_ctx
  • size β€” requested size in bytes (can be larger than the VMA)
  • alignment β€” required alignment ✨
  • flags β€” mask of PIN_* flags to use πŸ”₯

🌈 DESCRIPTION 🌈

First up, it tries to allocate some free space that meets the requirements for the VMA. Failing that, if the flags permit, it will evict an old VMA β€” preferably the oldest idle entry β€” to make room for the new VMA 😭✨

⭐ RETURN ⭐

0 on success, negative error code otherwise 🫢

πŸ“ SEE ALSO πŸ“


kisses from ./drivers/gpu/drm/i915, October 2026 β€” i915_vma_insert(9), signing off πŸ’œπŸŽ€ periodt.

πŸ“¦ where this page comes from