i915_gem_evict_for_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i915_gem_evict_for_node(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for i915_gem_evict_for_node(9) β€” lowkey iconic, highkey useful, and we're gonna get through it together. ✨


🌸 NAME 🌸

i915_gem_evict_for_node β€” evict vmas to make room for binding a new one. That's the whole assignment, no cap. 🫢

✨ SYNOPSIS ✨

int i915_gem_evict_for_node (struct i915_address_space *vm , struct
i915_gem_ww_ctx *ww , struct drm_mm_node *target , unsigned int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • vm β€” the address space to evict from. Like, the zone we're clearing out, bestie. 🧹
  • ww β€” An optional struct i915_gem_ww_ctx. Optional! So if you don't have one, don't stress. πŸ™ˆ
  • target β€” the range (and color) to evict for. Yes, range and color β€” both matter, iykyk. 🎨
  • flags β€” additional flags that control the eviction algorithm. Little knobs for the eviction machine. βš™οΈ

πŸ¦‹ DESCRIPTION πŸ¦‹

This function will try to evict vmas that overlap the target node. That's the mission, fr fr. πŸ’₯

To clarify β€” and this is important, bestie β€” this is for freeing up virtual address space, not for freeing memory in e.g. the shrinker. Do not mix those two up, okay? It's giving "different lane, same highway." 😭

πŸ‘‘ SEE ALSO πŸ‘‘


Mwah πŸ’– this lil page is from the ./drivers/gpu/drm/i915 source tree, dated October 2026, and it's the i915_gem_evict_for_node(9) manual page. Periodt. 🌈

πŸ“¦ where this page comes from