i915_gem_evict_for_node(9)
π 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 optionalstruct 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 π
- Kernel file:
./drivers/gpu/drm/i915/i915_gem_evict.c i915_gem_evict_something(9)i915_gem_evict_vm(9)
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
- 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