i915_gem_shrink_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🧚✨.

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