i915_gem_ob...unshrinkable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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