i915_gem_shrink_all(9)
π NAME π
okay so we are absolutely in the Kernel API Manual right now, bestie, and this page is i915_gem_shrink_all(9) β¨. the function is i915_gem_shrink_all β Shrink buffer object caches completely π«Ά. that's the whole name-and-description vibe, and yes it ate π
.
π SYNOPSIS π
unsigned long i915_gem_shrink_all (struct drm_i915_private *i915 );
πΈ ARGUMENTS πΈ
i915β the i915 device. that's the one and only argument, periodt π.
π₯ DESCRIPTION π₯
so this is a simple wrapper around i915_gem_shrink, and its whole thing is aggressively shrink all caches completely ππ₯. no half measures, no little nibble β complete cache shrink energy.
before it does the shrinking, it first waits for and retires all outstanding requests so it can also release backing storage for active objects too. yes bestie, it's doing the full routine β¨.
warning vibe, no cap: this should only be used in code to intentionally quiescent the gpu, or as a last-ditch effort when memory seems to have run out π. it is not a casual little everyday call, iykyk.
π RETURN π
it returns the number of pages of backing storage actually released π«Ά. that's the value, bestie β the actual pages that got released, periodt π .
π¦ SEE ALSO π¦
the kernel file is right here: ./drivers/gpu/drm/i915/gem/i915_gem_shrinker.c π§β¨.
i915_gem_shrink(9)i915_gem_object_make_unshrinkable(9)__i915_gem_object_make_shrinkable(9)__i915_gem_object_make_purgeable(9)i915_gem_object_make_shrinkable(9)i915_gem_object_make_purgeable(9)
mwah π«Ά β source/version is ./drivers/gpu/drm/i915/gem, dated October 2026, and the page is i915_gem_shrink_all(9). bye bestie, go shrink responsibly ππ«Ά
π¦ 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