i915_gem_ob...e_shrinkable(9)
π¦ i915_gem_ob...e_shrinkable(9) π¦
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil page about a function with a name so long the header literally had to abbreviate it β i915_gem_ob...e_shrinkable(9) β and honestly? iconic of it π
πΈ NAME πΈ
i915_gem_object_make_shrinkable β so what it does is, it moves the object to the tail of the shrinkable list π and like, heads up: objects on this list might be swapped out π it's used with WILLNEED objects, iykyk.
β¨ SYNOPSIS β¨
void i915_gem_object_make_shrinkable (struct drm_i915_gem_object *obj );
that's it, that's the whole vibe β returns void, takes one pointer, no cap π«Ά
π§ ARGUMENTS π§
objβ the GEM object. yes. that's the whole description. she's brief, she's mysterious, she's a GEM object π
π DESCRIPTION π
ok so this is where the rules live, and they're lowkey strict, so listen up π₯
MUST only be called on objects which have backing pages. like, fr fr. no pages, no call. π«
and it MUST be balanced with a previous call to i915_gem_object_make_unshrinkable β you can't just make it shrinkable and dip, bestie, that's not how this works π€ it's giving "every action has an equal and opposite reaction" but for kernel objects β¨
π SEE ALSO π
the receipts, the lore, the friend group π«Ά
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_shrinker.cβ go read the source, she's right there π i915_gem_shrink(9)i915_gem_shrink_all(9)i915_gem_object_make_unshrinkable(9)β the one you gotta balance with, don't forget her π__i915_gem_object_make_shrinkable(9)__i915_gem_object_make_purgeable(9)i915_gem_object_make_purgeable(9)
and that's the page!! π mwah π
this lil masterpiece came from ./drivers/gpu/drm/i915/gem, dated October 2026, and it's version-coded as i915_gem_ob...e_shrinkable(9) β write it down, cite it in your essay, whatever, slay πβ
π¦ 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