i915_gem_ob...unshrinkable(9)
π i915_gem_ob...unshrinkable(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for i915_gem_object_make_unshrinkable, and honestly the name is longer than my attention span but we're gonna get through it together π«Ά
β¨ NAME β¨
i915_gem_object_make_unshrinkable β literally hides the object from the shrinker π
ngl the deets matter here: by default, all object types that support shrinking (see IS_SHRINKABLE) will also make the object visible to the shrinker after allocating the system memory pages. so this function is the "not me, not today" button for that π
π SYNOPSIS π
void i915_gem_object_make_unshrinkable (struct drm_i915_gem_object *obj);
that's it. that's the whole vibe check. returns void because it's not here to give you answers π
πΈ ARGUMENTS πΈ
objβ the GEM object π¦ (yes, that's the whole description, she's lowkey mysterious like that)
π§ DESCRIPTION π§
so like, this is typically used for special kernel internal objects that can't be easily processed by the shrinker β think objects that are perma-pinned π they just live there, rent free, and the shrinker can't do anything with them, so we make them unshrinkable and everybody moves on. iconic behavior, no cap β¨
π SEE ALSO π
- kernel file
./drivers/gpu/drm/i915/gem/i915_gem_shrinker.cπ i915_gem_shrink(9)i915_gem_shrink_all(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)
like... the whole friend group, fr fr π«Ά go read them too, iykyk
and that's the page, bestie!! π this lil gem lives in ./drivers/gpu/drm/i915/gem, dated October 2026, brought to you by the Kernel API Manual β slay, mwah ππ₯
π¦ 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