i915_gem_object_evictable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

i915_gem_object_evictable β€” okay so basically it tells you whether an object is likely evictable after unbind πŸ’…

(this is from the Kernel API Manual, btw, in case you were wondering where all this lore comes from ✨)


πŸ¦‹ SYNOPSIS πŸ¦‹

bool i915_gem_object_evictable (struct drm_i915_gem_object *obj );

πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the object you wanna check. the main character of this whole function, honestly 🫢

πŸ’– DESCRIPTION πŸ’–

So this function checks whether the object is likely unvictable after unbind. (yes that's their word, not mine πŸ’€)

Here's the tea, bestie β€” the answer depends on when you ask πŸ‘€

  • If the object is not locked when you're checking, the result is only advisory. it's giving "vibes-based estimate", not a promise 😭
  • If the object is locked when you're checking, and the function returns true, then an eviction should indeed be possible. slay, that one you can trust ✨
But wait β€” there's a plot twist πŸŒ€ since unlocked vma unpinning and unbinding is currently possible, the object can actually become evictable even if this function returns false. so a false is NOT a forever-no, no cap. don't come for me if it flips later πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

true if the object may be evictable. false otherwise.

(that's it. that's the whole vibe check πŸ‘‘)


⭐ SEE ALSO ⭐

Kernel file: ./drivers/gpu/drm/i915/gem/i915_gem_object.c

The whole friend group, fr fr:


mwah πŸ’œ that's the page!! brought to you by ./drivers/gpu/drm/i915/gem, dated October 2026, and yes the title is i915_gem_object_evictable(9) β€” go forth and evict responsibly, bestie 🧚✨

πŸ“¦ where this page comes from